mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Core: Use enum-size for CONFIG_START_ALL_EXPLORED (was hardcoded to 64, not using the proper size of the enum PLAYER_EXPLORED_ZONES_SIZE)
Fixes issue 2726 --HG-- branch : trunk
This commit is contained in:
@@ -755,7 +755,7 @@ bool Player::Create(uint32 guidlow, const std::string& name, uint8 race, uint8 c
|
||||
// start with every map explored
|
||||
if (sWorld.getConfig(CONFIG_START_ALL_EXPLORED))
|
||||
{
|
||||
for (uint8 i=0; i<64; i++)
|
||||
for (uint8 i=0; i<PLAYER_EXPLORED_ZONES_SIZE; i++)
|
||||
SetFlag(PLAYER_EXPLORED_ZONES_1+i,0xFFFFFFFF);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user