*Fix a crash caused by far sight spells.

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

No files matched your search

+1 -2
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);