mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7339] Attempt lock spawn grid only for active non-pet creatures.
This commit is contained in:
parent
f35ffca03e
commit
b4dbeb3bc8
4 changed files with 20 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue