diff --git a/src/PlayerbotSecurity.cpp b/src/PlayerbotSecurity.cpp index 9c547898..ad83b028 100644 --- a/src/PlayerbotSecurity.cpp +++ b/src/PlayerbotSecurity.cpp @@ -231,7 +231,14 @@ bool PlayerbotSecurity::CheckLevelFor(PlayerbotSecurityLevel level, bool silent, out << "I am currently leading a group. I can invite you if you want."; break; case PLAYERBOT_DENY_NOT_LEADER: - out << "I am in a group with " << botAI->GetGroupMaster()->GetName() << ". You can ask him for invite."; + if (botAI->GetGroupMaster()) + { + out << "I am in a group with " << botAI->GetGroupMaster()->GetName() << ". You can ask him for invite."; + } + else + { + out << "I am in a group with someone else. You can ask him for invite."; + } break; case PLAYERBOT_DENY_BG: out << "I am in a queue for BG. Will do it later";