Skip to content

Commit

Permalink
Hearthstone: Crash fix in group but no group master.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Mar 6, 2025
1 parent 9af8ed5 commit 1ee93be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/triggers/RpgTriggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ bool RpgHomeBindTrigger::IsActive()
return false;

//Update if the new bind is closer to the group leaders bind than the old one.
if (bot->GetGroup() && !ai->IsGroupLeader() && ai->GetGroupMaster()->GetPlayerbotAI())
if (bot->GetGroup() && !ai->IsGroupLeader() && ai->GetGroupMaster() && ai->GetGroupMaster()->GetPlayerbotAI())
{
Player* player = ai->GetGroupMaster();
WorldPosition leaderBind = PAI_VALUE(WorldPosition, "home bind");
Expand Down

0 comments on commit 1ee93be

Please sign in to comment.