mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 20:17:54 +03: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))
|
if (Misc::StringUtils::ciEqual(iter->getCellRef().mRefID, itemId))
|
||||||
toRemove -= remove(*iter, toRemove, actor);
|
toRemove -= remove(*iter, toRemove, actor);
|
||||||
|
|
||||||
|
flagAsModified();
|
||||||
|
|
||||||
// number of removed items
|
// number of removed items
|
||||||
return count - toRemove;
|
return count - toRemove;
|
||||||
}
|
}
|
||||||
|
@ -235,6 +237,8 @@ int MWWorld::ContainerStore::remove(const Ptr& item, int count, const Ptr& actor
|
||||||
toRemove = 0;
|
toRemove = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flagAsModified();
|
||||||
|
|
||||||
// number of removed items
|
// number of removed items
|
||||||
return count - toRemove;
|
return count - toRemove;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue