*Fix a crash caused by far sight spells.
--HG-- branch : trunk
This commit is contained in:
1 parent
1af157d012
commit
4b19153a79
3 files changed
+12
-13
No files matched your search
+4
-4
@@ -1082,9 +1082,9 @@ void WorldObject::setActive( bool on )
|
||||
{
|
||||
map = GetMap();
|
||||
if(GetTypeId() == TYPEID_UNIT)
|
||||
map->Remove((Creature*)this,false);
|
||||
map->RemoveFromActive((Creature*)this);
|
||||
else if(GetTypeId() == TYPEID_DYNAMICOBJECT)
|
||||
map->Remove((DynamicObject*)this,false);
|
||||
map->RemoveFromActive((DynamicObject*)this);
|
||||
}
|
||||
|
||||
m_isActive = on;
|
||||
@@ -1092,9 +1092,9 @@ void WorldObject::setActive( bool on )
|
||||
if(world)
|
||||
{
|
||||
if(GetTypeId() == TYPEID_UNIT)
|
||||
map->Add((Creature*)this);
|
||||
map->AddToActive((Creature*)this);
|
||||
else if(GetTypeId() == TYPEID_DYNAMICOBJECT)
|
||||
map->Add((DynamicObject*)this);
|
||||
map->AddToActive((DynamicObject*)this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user