aboutsummaryrefslogtreecommitdiff
path: root/src/game/MiscHandler.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-17 19:09:40 +0100
committern0n4m3 <none@none>2009-12-17 19:09:40 +0100
commit3e133c47865d57816132300df2749b297f97bce0 (patch)
tree306c46fe0dd82f3909f65ef3cfccd3426bc049da /src/game/MiscHandler.cpp
parent6b405c63cc291f979abbb8939dd3b129fa664584 (diff)
[9012] fix crash when achievement is completed and player isn't in world
--HG-- branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r--src/game/MiscHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index c843bd27fe0..85e1a497a25 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -736,7 +736,7 @@ void WorldSession::HandleReclaimCorpseOpcode(WorldPacket &recv_data)
if(corpse->GetGhostTime() + GetPlayer()->GetCorpseReclaimDelay(corpse->GetType()==CORPSE_RESURRECTABLE_PVP) > time(NULL))
return;
- if (!corpse->IsWithinDist(GetPlayer(), CORPSE_RECLAIM_RADIUS, true))
+ if (!corpse->IsWithinDistInMap(GetPlayer(), CORPSE_RECLAIM_RADIUS, true))
return;
uint64 guid;