Added abit more defense programming, should be needed still ..why not

This commit is contained in:
bash 2025-08-07 01:27:17 +02:00 committed by GitHub
parent 687d996643
commit b8e11b73de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,7 @@ public:
if (Group* group = player->GetGroup()) if (Group* group = player->GetGroup())
{ {
Player* leader = group->GetLeader(); Player* leader = group->GetLeader();
if (leader != player) if (leader && leader != player)
{ {
if (PlayerbotAI* leaderBotAI = GET_PLAYERBOT_AI(leader)) if (PlayerbotAI* leaderBotAI = GET_PLAYERBOT_AI(leader))
{ {