[Crash] Fixes Crash when Zoning with XTarget when Bots are in group. (#3126)

This commit is contained in:
Aeadoin
2023-03-19 08:26:16 -04:00
committed by GitHub
parent a6efb1e8b5
commit 53e6f931c9
3 changed files with 9 additions and 9 deletions
+1
View File
@@ -5457,6 +5457,7 @@ void Bot::ProcessBotOwnerRefDelete(Mob* botOwner) {
if (tempBot) {
tempBot->SetTarget(nullptr);
tempBot->SetBotOwner(nullptr);
tempBot->Zone();
}
}
}