Main Menu

=== Core & Script Fixes ===

Started by Ziex, Feb 27, 2026, 10:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ziex

=== Core & Script Fixes ===

- Fixed server crash on shutdown: StopNetwork() now called before script/map cleanup
- Added mutex lock on MacroStrikes map (race condition fix)
- Added OnLogout cleanup to prevent memory leak
- Fixed shutdown order: Teleport -> Ban -> Kick
- Fixed OnPlayerUpdate hook (not valid in this TC version) -> moved to WorldScript::OnUpdate
- Replaced sync DB queries with single combined async query on login
- Made dataMap static + mutex protected
- Fixed SavePlaytime called safely on logout

[DynamicStatScaler]
- Moved _msgTimer to static global + mutex protected
- Added null checks on player and GetSession()

[TemplateNPC]
- Fixed race condition: removed shared sTalentsSpec global, now uses local specStr per player
- Added mutex protection on talent/glyph containers during load and read
- Replaced SQL query in CanEquipTemplate with safe in-memory container check
- Fixed GetCommands return type to Trinity::ChatCommands::ChatCommandBuilder
- Added missing CloseGossipMenuFor on failed template lookup