1
0
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:
scrawl 2016-04-11 17:15:02 +02:00
parent 4854d6b093
commit ba3f4f122a

View File

@ -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);
}