Core/Maps: fixed a typo in world state loading that caused all world states to become realm wide

This commit is contained in:
Shauren
2022-06-25 19:50:07 +02:00
committed by GitHub
parent 846e89c1fc
commit 5931ab55f6

View File

@@ -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;