Core/Players: Fixed ExploredZones size and PLAYER_EXPLORED_ZONES_SIZE desync
Port From (https://github.com/TrinityCore/TrinityCore/commit/cb99b08b86f8773563276bf16ccc2210003b056b)
This commit is contained in:
@@ -945,8 +945,8 @@ namespace Game
|
||||
// start with every map explored
|
||||
if (WorldConfig.GetBoolValue(WorldCfg.StartAllExplored))
|
||||
{
|
||||
for (ushort i = 0; i < PlayerConst.ExploredZonesSize; i++)
|
||||
pCurrChar.SetUpdateFieldValue(ref pCurrChar.m_values.ModifyValue(pCurrChar.m_activePlayerData).ModifyValue(pCurrChar.m_activePlayerData.ExploredZones, i), 0xFFFFFFFFFFFFFFFF);
|
||||
for (uint i = 0; i < PlayerConst.ExploredZonesSize; i++)
|
||||
pCurrChar.AddExploredZones(i, 0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
|
||||
//Reputations if "StartAllReputation" is enabled
|
||||
|
||||
Reference in New Issue
Block a user