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

This commit is contained in:
Aeadoin authored and GitHub committed 2023-03-19 08:26:16 -04:00
1 parent a6efb1e8b5
commit 53e6f931c9
3 files changed
+9 -9

No files matched your search

+1
View File
@@ -5457,6 +5457,7 @@ void Bot::ProcessBotOwnerRefDelete(Mob* botOwner) {
if (tempBot) {
tempBot->SetTarget(nullptr);
tempBot->SetBotOwner(nullptr);
tempBot->Zone();
}
}
}