Core/AI: Add some checks to catch if the AI changes mid-update for players.

Port From (https://github.com/TrinityCore/TrinityCore/commit/1015f307041b25b47a9bb4bc76ac4ed78c49d735)
This commit is contained in:
hondacrx
2021-11-15 23:22:08 -05:00
parent 593a4b9df8
commit bc84e62688
5 changed files with 11 additions and 26 deletions
-1
View File
@@ -81,7 +81,6 @@ namespace Game.Entities
Cypher.Assert(newAI != null);
i_AI = newAI;
newAI.OnCharmed(true);
AIUpdateTick(0, true);
}
else
{