mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-22 18:11:34 +00:00
Account for the stack count in HasSoulGem (Bug #3340)
This commit is contained in:
parent
4854d6b093
commit
ba3f4f122a
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ namespace MWScript
|
||||||
it != invStore.end(); ++it)
|
it != invStore.end(); ++it)
|
||||||
{
|
{
|
||||||
if (::Misc::StringUtils::ciEqual(it->getCellRef().getSoul(), name))
|
if (::Misc::StringUtils::ciEqual(it->getCellRef().getSoul(), name))
|
||||||
++count;
|
count += it->getRefData().getCount();
|
||||||
}
|
}
|
||||||
runtime.push(count);
|
runtime.push(count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue