Account for the stack count in HasSoulGem (Bug #3340)

coverity_scan^2
scrawl 9 years ago
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…
Cancel
Save