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:
click
2010-08-17 11:27:47 +02:00
parent feb71c4b7d
commit 26386d1e20

View File

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