Fixed IsRaidMemberBot to remove memory leak

Fixed altcombat crash though RaidMainAssist (428) needs fixing
This commit is contained in:
neckkola
2022-02-07 21:35:53 -04:00
parent 2b625bb347
commit deb4f10ea8
2 changed files with 29 additions and 6 deletions
+4
View File
@@ -428,6 +428,10 @@ void Bot::AI_Process_Raid()
auto assist_mob = raid->GetRaidMainAssistOneByName(this->GetName());
bool find_target = true;
if (!assist_mob) {
bot_owner->Message(Chat::Yellow, "Assist Mob is nullptr");
}
if (assist_mob) {
if (assist_mob->GetTarget()) {