Skip to content

Commit

Permalink
Mount: Crash fix when in a removed bg
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Dec 6, 2024
1 parent 2449ad3 commit 661ea92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playerbot/strategy/actions/CheckMountStateAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ bool CheckMountStateAction::CanMountInBg() const
//check near A Flag
uint32 lowguid = 90000;
uint32 id = 179830;
if (!bg)
return false;
GameObject* AllianceflagStand = bg->GetBgMap()->GetGameObject(ObjectGuid(HIGHGUID_GAMEOBJECT, id, lowguid));

if (bot->IsWithinDistInMap(AllianceflagStand, 3.0f))
Expand Down

0 comments on commit 661ea92

Please sign in to comment.