aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);