Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
(cherry picked from commit b9450bcdd0924ca69b5b2cc675f5c2b558ff9b47)
This commit is contained in:
@@ -9335,7 +9335,7 @@ void Unit::RemoveFromWorld()
|
||||
{
|
||||
m_duringRemoveFromWorld = true;
|
||||
if (UnitAI* ai = GetAI())
|
||||
ai->LeavingWorld();
|
||||
ai->OnDespawn();
|
||||
|
||||
if (IsVehicle())
|
||||
RemoveVehicleKit(true);
|
||||
|
||||
Reference in New Issue
Block a user