diff --git a/apps/openmw/mwworld/containerstore.cpp b/apps/openmw/mwworld/containerstore.cpp index 4639a1d2d..8d5286376 100644 --- a/apps/openmw/mwworld/containerstore.cpp +++ b/apps/openmw/mwworld/containerstore.cpp @@ -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; }