mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 09:45:32 +00:00
Small cleanup
This commit is contained in:
parent
e51300989c
commit
df8e095c83
1 changed files with 1 additions and 9 deletions
|
@ -264,15 +264,7 @@ int MWDialogue::Filter::getSelectStructInteger (const SelectWrapper& select) con
|
||||||
{
|
{
|
||||||
MWWorld::ContainerStore& store = MWWorld::Class::get (player).getContainerStore (player);
|
MWWorld::ContainerStore& store = MWWorld::Class::get (player).getContainerStore (player);
|
||||||
|
|
||||||
int sum = 0;
|
return store.count(select.getName());
|
||||||
|
|
||||||
std::string name = select.getName();
|
|
||||||
|
|
||||||
for (MWWorld::ContainerStoreIterator iter (store.begin()); iter!=store.end(); ++iter)
|
|
||||||
if (Misc::StringUtils::ciEqual(iter->getCellRef().mRefID, name))
|
|
||||||
sum += iter->getRefData().getCount();
|
|
||||||
|
|
||||||
return sum;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case SelectWrapper::Function_Dead:
|
case SelectWrapper::Function_Dead:
|
||||||
|
|
Loading…
Reference in a new issue