[7339] Attempt lock spawn grid only for active non-pet creatures.

This commit is contained in:
VladimirMangos 2009-02-26 01:39:45 +03:00
parent f35ffca03e
commit b4dbeb3bc8
4 changed files with 20 additions and 20 deletions

View file

@ -125,7 +125,8 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, GridRefManager<T> &
addUnitState(obj,cell);
obj->AddToWorld();
map->AddToActive(obj);
if(obj->isActiveObject())
map->AddToActive(obj);
++count;
@ -152,7 +153,8 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType
addUnitState(obj,cell);
obj->AddToWorld();
map->AddToActive(obj);
if(obj->isActiveObject())
map->AddToActive(obj);
++count;
}