From d2dcf0b2036f03d3f42ad47e5d329297724fa22f Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Sat, 2 Nov 2013 13:06:15 +0100 Subject: [PATCH] Add a warning comment to RefData::setCount() --- apps/openmw/mwworld/refdata.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwworld/refdata.hpp b/apps/openmw/mwworld/refdata.hpp index 642f5412c8..d5701efc51 100644 --- a/apps/openmw/mwworld/refdata.hpp +++ b/apps/openmw/mwworld/refdata.hpp @@ -73,6 +73,11 @@ namespace MWWorld void setLocals (const ESM::Script& script); void setCount (int count); + /// Set object count (an object pile is a simple object with a count >1). + /// + /// \warning Do not call setCount() to add or remove objects from a + /// container or an actor's inventory. Call ContainerStore::add() or + /// ContainerStore::remove() instead. MWScript::Locals& getLocals();