mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Core/Maps: fixed a typo in world state loading that caused all world states to become realm wide
This commit is contained in:
@@ -42,7 +42,7 @@ void WorldStateMgr::LoadFromDB()
|
||||
uint32 defaultValue = fields[1].GetInt32();
|
||||
Optional<uint32> mapId;
|
||||
if (!fields[2].IsNull())
|
||||
fields[2].GetUInt32();
|
||||
mapId = fields[2].GetUInt32();
|
||||
|
||||
if (mapId.has_value())
|
||||
_mapWorldStates[*mapId][id] = defaultValue;
|
||||
|
||||
Reference in New Issue
Block a user