Core/AI: Add a new LeavingWorld AI hook
This commit is contained in:
1 parent
557c212885
commit
60fd73b18c
2 files changed
+6
No files matched your search
@@ -10038,6 +10038,9 @@ void Unit::RemoveFromWorld()
|
||||
if (IsInWorld())
|
||||
{
|
||||
m_duringRemoveFromWorld = true;
|
||||
if (IsAIEnabled)
|
||||
GetAI()->LeavingWorld();
|
||||
|
||||
if (IsVehicle())
|
||||
RemoveVehicleKit();
|
||||
|
||||
|
||||
Reference in new issue
Block a user