*Fix a crash caused by far sight spells.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-26 10:42:37 -06:00
parent 1af157d012
commit 4b19153a79
3 changed files with 12 additions and 13 deletions

View File

@@ -844,10 +844,9 @@ Map::Remove(T *obj, bool remove)
NGridType *grid = getNGrid(cell.GridX(), cell.GridY());
assert( grid != NULL );
obj->RemoveFromWorld();
if(obj->isActiveObject())
RemoveFromActive(obj);
obj->RemoveFromWorld();
RemoveFromGrid(obj,grid,cell);
UpdateObjectVisibility(obj,cell,p);