diff options
author | megamage <none@none> | 2009-08-11 11:04:08 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-11 11:04:08 -0500 |
commit | a51cc015fab928fe349c68c502002abd74595943 (patch) | |
tree | aecfa1db5f281571f0fad99a5a074172981a00f1 /src | |
parent | 3fa3c8b09897c63efa8ad55243a95ee3eff5e75e (diff) |
*Fix anothe crash bug caused by SetMap
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ObjectGridLoader.cpp | 5 |
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); |