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

(cherry picked from commit b9450bcdd0924ca69b5b2cc675f5c2b558ff9b47)
This commit is contained in:
offl
2022-09-05 19:43:09 +02:00
committed by Shauren
parent 496eba4e8d
commit b0164fb2b9
8 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -9335,7 +9335,7 @@ void Unit::RemoveFromWorld()
{
m_duringRemoveFromWorld = true;
if (UnitAI* ai = GetAI())
ai->LeavingWorld();
ai->OnDespawn();
if (IsVehicle())
RemoveVehicleKit(true);