From b8e11b73de0c49321606927e0605762cd13ccdd5 Mon Sep 17 00:00:00 2001 From: bash <31279994+hermensbas@users.noreply.github.com> Date: Thu, 7 Aug 2025 01:27:17 +0200 Subject: [PATCH] Added abit more defense programming, should be needed still ..why not --- src/Playerbots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Playerbots.cpp b/src/Playerbots.cpp index d8668689..ed44a70f 100644 --- a/src/Playerbots.cpp +++ b/src/Playerbots.cpp @@ -221,7 +221,7 @@ public: if (Group* group = player->GetGroup()) { Player* leader = group->GetLeader(); - if (leader != player) + if (leader && leader != player) { if (PlayerbotAI* leaderBotAI = GET_PLAYERBOT_AI(leader)) {