From 3f467130f60a0d84a0b2977d08a24040dc3495cc Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 31 Aug 2009 01:18:29 -0700 Subject: *Replace 2^32-1 with MAPID_INVALID (I knew megamage added this somewhere, just couldn't find it until now :P) --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 82ed0a9a092..cfddb5e76ad 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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(); -- cgit v1.2.3