Skip to content

Commit

Permalink
Dead: Fixed crash for selfbot when trying to move corpse from below t…
Browse files Browse the repository at this point in the history
…he surface when on a different map
  • Loading branch information
mostlikely4r committed Jan 20, 2025
1 parent 6fd62c1 commit 557f800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/actions/ReviveFromCorpseAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ bool FindCorpseAction::Execute(Event& event)
float corpseDist = botPos.distance(corpsePos);

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

0 comments on commit 557f800

Please sign in to comment.