aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectGridLoader.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-11 11:04:08 -0500
committermegamage <none@none>2009-08-11 11:04:08 -0500
commita51cc015fab928fe349c68c502002abd74595943 (patch)
treeaecfa1db5f281571f0fad99a5a074172981a00f1 /src/game/ObjectGridLoader.cpp
parent3fa3c8b09897c63efa8ad55243a95ee3eff5e75e (diff)
*Fix anothe crash bug caused by SetMap
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectGridLoader.cpp')
-rw-r--r--src/game/ObjectGridLoader.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp
index d08e3010a78..de549cd32b8 100644
--- a/src/game/ObjectGridLoader.cpp
+++ b/src/game/ObjectGridLoader.cpp
@@ -124,9 +124,7 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, GridRefManager<T> &
}
obj->GetGridRef().link(&m, obj);
-
addUnitState(obj,cell);
- obj->SetMap(map);
obj->AddToWorld();
if(obj->isActiveObject())
map->AddToActive(obj);
@@ -155,7 +153,6 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, CreatureMapType &m,
}
obj->GetGridRef().link(&m, obj);
-
addUnitState(obj,cell);
obj->AddToWorld();
if(obj->isActiveObject())
@@ -183,9 +180,7 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType
continue;
obj->GetGridRef().link(&m, obj);
-
addUnitState(obj,cell);
- obj->SetMap(map);
obj->AddToWorld();
if(obj->isActiveObject())
map->AddToActive(obj);