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:
@@ -81,7 +81,6 @@ namespace Game.Entities
|
||||
Cypher.Assert(newAI != null);
|
||||
i_AI = newAI;
|
||||
newAI.OnCharmed(true);
|
||||
AIUpdateTick(0, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user