Skip to content

Commit 557f800

Browse files
committed
Dead: Fixed crash for selfbot when trying to move corpse from below the surface when on a different map
1 parent 6fd62c1 commit 557f800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playerbot/strategy/actions/ReviveFromCorpseAction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool FindCorpseAction::Execute(Event& event)
7979
float corpseDist = botPos.distance(corpsePos);
8080

8181
//If player fell through terrain move corpse to player position.
82-
if (bot->isRealPlayer())
82+
if (bot->isRealPlayer() && botPos.getMapId() == moveToPos.getMapId())
8383
{
8484
//Try to correct the position upward.
8585
if (!moveToPos.ClosestCorrectPoint(5.0f, 500.0f, bot->GetInstanceId()))

0 commit comments

Comments
 (0)