mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9392] Update creature/gameobject pool at despawn instead spawn prepare.
This let solve problem with not despawned creature/gameobject at pool update in case when related grid not loaded. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
941b2edb10
commit
b2718378ef
6 changed files with 93 additions and 41 deletions
|
|
@ -574,7 +574,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
|
|||
}
|
||||
|
||||
for (IdList::iterator itr = mGameEventPoolIds[internal_event_id].begin();itr != mGameEventPoolIds[internal_event_id].end();++itr)
|
||||
sPoolMgr.SpawnPool(*itr);
|
||||
sPoolMgr.SpawnPool(*itr, true);
|
||||
}
|
||||
|
||||
void GameEventMgr::GameEventUnspawn(int16 event_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue