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:
parent
3c6a391507
commit
027f4152e4
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue