mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
[8667] Correctly respawn pooled object in case the same object is selected for respawn
[8701] Fixes and inprovements in pool system. thx Frankir --HG-- branch : trunk
This commit is contained in:
@@ -1279,7 +1279,9 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
|
||||
|
||||
for (IdList::iterator itr = mGameEventPoolIds[internal_event_id].begin(); itr != mGameEventPoolIds[internal_event_id].end(); ++itr)
|
||||
{
|
||||
poolhandler.SpawnPool(*itr);
|
||||
poolhandler.SpawnPool(*itr, 0, 0);
|
||||
poolhandler.SpawnPool(*itr, 0, TYPEID_GAMEOBJECT);
|
||||
poolhandler.SpawnPool(*itr, 0, TYPEID_UNIT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user