mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Account for the stack count in HasSoulGem (Bug #3340)
This commit is contained in:
parent
4854d6b093
commit
ba3f4f122a
@ -317,7 +317,7 @@ namespace MWScript
|
||||
it != invStore.end(); ++it)
|
||||
{
|
||||
if (::Misc::StringUtils::ciEqual(it->getCellRef().getSoul(), name))
|
||||
++count;
|
||||
count += it->getRefData().getCount();
|
||||
}
|
||||
runtime.push(count);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user