mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 23:38:54 -04:00
Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
This commit is contained in:
@@ -9584,7 +9584,7 @@ void Unit::RemoveFromWorld()
|
||||
{
|
||||
m_duringRemoveFromWorld = true;
|
||||
if (UnitAI* ai = GetAI())
|
||||
ai->LeavingWorld();
|
||||
ai->OnDespawn();
|
||||
|
||||
if (IsVehicle())
|
||||
RemoveVehicleKit();
|
||||
|
||||
Reference in New Issue
Block a user