Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
This commit is contained in:
@@ -481,7 +481,7 @@ namespace Game.Entities
|
||||
m_duringRemoveFromWorld = true;
|
||||
UnitAI ai = GetAI();
|
||||
if (ai != null)
|
||||
ai.LeavingWorld();
|
||||
ai.OnDespawn();
|
||||
|
||||
if (IsVehicle())
|
||||
RemoveVehicleKit(true);
|
||||
|
||||
Reference in New Issue
Block a user