*Fix a crash.
--HG-- branch : trunk
This commit is contained in:
1 parent
ee6418d92a
commit
23ef8a6dd6
3 files changed
+33
-13
No files matched your search
+1
-9
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user