aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-26 17:01:02 -0600
committermegamage <none@none>2009-02-26 17:01:02 -0600
commit23ef8a6dd6d286c4ad165729ad7efd221f1e744e (patch)
treece2748e491db7208e9a09eb0302de4504f65d6da /src/game/Object.cpp
parentee6418d92a4cccbf63941016e7339ce557144287 (diff)
*Fix a crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 1e0834ecf1f..62ad688e52e 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1075,15 +1075,7 @@ void WorldObject::SetWorldObject(bool on)
if(!IsInWorld())
return;
- if(GetTypeId() == TYPEID_UNIT)
- {
- if(!((Creature*)this)->isPet())
- GetMap()->SwitchGridContainers((Creature*)this, on);
- }
- /*else if(GetTypeId() == TYPEID_DYNAMICOBJECT)
- {
- GetMap()->SwitchGridContainers((DynamicObject*)this, on);
- }*/
+ GetMap()->AddObjectToSwitchList(this, on);
}
void WorldObject::setActive( bool on )