Core/Movement: Fixed possible crash in HomeMovementGenerator
Port From (https://github.com/TrinityCore/TrinityCore/commit/9c63503527944568e13ae6d8cf9e46bd634f7587)
This commit is contained in:
@@ -78,7 +78,10 @@ namespace Game.AI
|
|||||||
owner.LoadCreaturesAddon();
|
owner.LoadCreaturesAddon();
|
||||||
if (owner.IsVehicle())
|
if (owner.IsVehicle())
|
||||||
owner.GetVehicleKit().Reset(true);
|
owner.GetVehicleKit().Reset(true);
|
||||||
owner.GetAI().JustReachedHome();
|
|
||||||
|
CreatureAI ai = owner.GetAI();
|
||||||
|
if (ai != null)
|
||||||
|
ai.JustReachedHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user