aboutsummaryrefslogtreecommitdiff
path: root/src/game/DynamicObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-26 20:43:35 -0600
committermegamage <none@none>2009-02-26 20:43:35 -0600
commitd3a69006675bb5317fab76584d5990b36c2fd5a5 (patch)
tree8a0f3e0033eb694d5aba06db5c1ecc02b690099e /src/game/DynamicObject.cpp
parent39c513776c5dde8b5732df5ba2467d9e9e3e84fd (diff)
parentbc54e91afff9b9a53902439441fa2e63e3da1a9a (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r--src/game/DynamicObject.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp
index ddc04d382de..d14b213d9fa 100644
--- a/src/game/DynamicObject.cpp
+++ b/src/game/DynamicObject.cpp
@@ -53,17 +53,7 @@ void DynamicObject::AddToWorld()
void DynamicObject::RemoveFromWorld()
{
///- Remove the dynamicObject from the accessor
- if(IsInWorld())
- {
- // Make sure the object is back to grid container for removal as farsight targets
- // are switched to world container on creation and they are also set to active
- if (isActive())
- {
- GetMap()->SwitchGridContainers(this, false);
- setActive(false);
- }
- ObjectAccessor::Instance().RemoveObject(this);
- }
+ if(IsInWorld()) ObjectAccessor::Instance().RemoveObject(this);
WorldObject::RemoveFromWorld();
}