Skip to content

Commit

Permalink
-Crash fix: Instance id's being packed and shuffled after instance re…
Browse files Browse the repository at this point in the history
…set being started for old ids.
  • Loading branch information
mostlikely4r committed Oct 8, 2024
1 parent 910d594 commit b78ee1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/World/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,12 +975,12 @@ void World::SetInitialWorldSettings()
sSpellMgr.LoadSkillRaceClassInfoMap();

///- Clean up and pack instances
sLog.outString("Cleaning up instances...");
sMapPersistentStateMgr.CleanupInstances(); // must be called before `creature_respawn`/`gameobject_respawn` tables

sLog.outString("Packing instances...");
sMapPersistentStateMgr.PackInstances();

sLog.outString("Cleaning up instances...");
sMapPersistentStateMgr.CleanupInstances(); // must be called before `creature_respawn`/`gameobject_respawn` tables

sLog.outString("Packing groups...");
sObjectMgr.PackGroupIds(); // must be after CleanupInstances

Expand Down

0 comments on commit b78ee1b

Please sign in to comment.