Skip to content

Commit

Permalink
World/Core: 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.

Closes cmangos/mangos-tbc#698
  • Loading branch information
mostlikely4r authored and killerwife committed Nov 13, 2024
1 parent d6d00d8 commit e4dda73
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 @@ -930,12 +930,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 and after pack instances

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

Expand Down

0 comments on commit e4dda73

Please sign in to comment.