From ba3f4f122a109add4dd28b44026633dd08a1353b Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 11 Apr 2016 17:15:02 +0200 Subject: [PATCH] Account for the stack count in HasSoulGem (Bug #3340) --- apps/openmw/mwscript/containerextensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/containerextensions.cpp b/apps/openmw/mwscript/containerextensions.cpp index 4e3e010f7e..366e88f1e3 100644 --- a/apps/openmw/mwscript/containerextensions.cpp +++ b/apps/openmw/mwscript/containerextensions.cpp @@ -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); }