Core/Units: Fixed crash happening when charm was removed by its own charmed AI during update

Port From (https://github.com/TrinityCore/TrinityCore/commit/f3c1b27c266e2857214a087fdd9339e06dbedf5e)
This commit is contained in:
hondacrx
2021-11-16 23:26:08 -05:00
parent 705a2fe3a1
commit e8b8d2c1bb
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -33,6 +33,7 @@ namespace Game.Entities
//AI
protected UnitAI i_AI;
protected UnitAI i_disabledAI;
UnitAI i_lockedAILifetimeExtension; // yes, this lifetime extension is terrible
bool m_aiLocked;
//Movement