Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)

This commit is contained in:
offl
2022-06-26 21:48:41 +03:00
committed by GitHub
parent f0d2418e5f
commit b9450bcdd0
8 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -9584,7 +9584,7 @@ void Unit::RemoveFromWorld()
{
m_duringRemoveFromWorld = true;
if (UnitAI* ai = GetAI())
ai->LeavingWorld();
ai->OnDespawn();
if (IsVehicle())
RemoveVehicleKit();