diff options
author | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
commit | bf66375bc73c2b9dd7c2d26d7af25b111734c622 (patch) | |
tree | 67c3cf601faf32a03d16dfe7b02b2a938ec76ae7 /src/game/ObjectGridLoader.cpp | |
parent | ccde296fd3822898e8959c009211fe880a0429f7 (diff) |
*Update active object code. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectGridLoader.cpp')
-rw-r--r-- | src/game/ObjectGridLoader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp index 2d6d0e7c7a0..14b1865cfa7 100644 --- a/src/game/ObjectGridLoader.cpp +++ b/src/game/ObjectGridLoader.cpp @@ -127,6 +127,9 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, GridRefManager<T> & addUnitState(obj,cell); obj->AddToWorld(); + if(obj->isActiveObject()) + map->AddToActive(obj); + ++count; } @@ -152,6 +155,9 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType addUnitState(obj,cell); obj->AddToWorld(); + if(obj->isActiveObject()) + map->AddToActive(obj); + ++count; } } |