*Do not allow to add/remove obj to/from world more than once.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-25 15:54:23 -06:00
parent 435570903a
commit 581ae2719d
6 changed files with 48 additions and 23 deletions
+3
View File
@@ -130,6 +130,9 @@ class TRINITY_DLL_SPEC Object
}
virtual void RemoveFromWorld()
{
if(!m_inWorld)
return;
// if we remove from world then sending changes not required
if(m_uint32Values)
ClearUpdateMask(true);