*Replace 2^32-1 with MAPID_INVALID (I knew megamage added this somewhere, just couldn't find it until now :P)

--HG--
branch : trunk
This commit is contained in:
maximius
2009-08-31 01:18:29 -07:00
parent 254c49f55a
commit 3f467130f6
+1 -1
View File
@@ -14854,7 +14854,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
const WorldLocation& _loc = GetBattleGroundEntryPoint();
mapId = _loc.GetMapId(); instanceId = 0;
if(mapId == 4294967295/*UINT32_MAX*/) // Battleground Entry Point not found (???)
if(mapId == MAPID_INVALID) // Battleground Entry Point not found (???)
{
sLog.outError("Player (guidlow %d) was in BG in database, but BG was not found, and entry point was invalid! Teleport to default race/class locations.",guid);
RelocateToHomebind();