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
@@ -33,6 +33,7 @@ namespace Game.Entities
//AI
protected UnitAI i_AI;
protected UnitAI i_disabledAI;
bool m_aiLocked;
//Movement
protected float[] m_speed_rate = new float[(int)UnitMoveType.Max];