1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 20:15:32 +00:00

Missing flagAsModified()

This commit is contained in:
scrawl 2013-11-12 23:17:03 +01:00
parent 3c6a391507
commit 027f4152e4

View file

@ -213,6 +213,8 @@ int MWWorld::ContainerStore::remove(const std::string& itemId, int count, const
if (Misc::StringUtils::ciEqual(iter->getCellRef().mRefID, itemId))
toRemove -= remove(*iter, toRemove, actor);
flagAsModified();
// number of removed items
return count - toRemove;
}
@ -235,6 +237,8 @@ int MWWorld::ContainerStore::remove(const Ptr& item, int count, const Ptr& actor
toRemove = 0;
}
flagAsModified();
// number of removed items
return count - toRemove;
}