mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Issue #432: fixed MWWorld::ContainerStore::clear
This commit is contained in:
parent
648b53ef93
commit
4bc4ca775c
1 changed files with 2 additions and 12 deletions
|
@ -167,18 +167,8 @@ void MWWorld::ContainerStore::fill (const ESM::InventoryList& items, const ESMS:
|
||||||
|
|
||||||
void MWWorld::ContainerStore::clear()
|
void MWWorld::ContainerStore::clear()
|
||||||
{
|
{
|
||||||
potions.list.clear();
|
for (ContainerStoreIterator iter (begin()); iter!=end(); ++iter)
|
||||||
appas.list.clear();
|
iter->getRefData().setCount (0);
|
||||||
armors.list.clear();
|
|
||||||
books.list.clear();
|
|
||||||
clothes.list.clear();
|
|
||||||
ingreds.list.clear();
|
|
||||||
lights.list.clear();
|
|
||||||
lockpicks.list.clear();
|
|
||||||
miscItems.list.clear();
|
|
||||||
probes.list.clear();
|
|
||||||
repairs.list.clear();
|
|
||||||
weapons.list.clear();
|
|
||||||
|
|
||||||
flagAsModified();
|
flagAsModified();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue