Core/AI: Add a new LeavingWorld AI hook

This commit is contained in:
Treeston authored and Aokromes committed 2018-06-26 14:54:25 +02:00
1 parent 557c212885
commit 60fd73b18c
2 files changed
+6

No files matched your search

+3
View File
@@ -10038,6 +10038,9 @@ void Unit::RemoveFromWorld()
if (IsInWorld())
{
m_duringRemoveFromWorld = true;
if (IsAIEnabled)
GetAI()->LeavingWorld();
if (IsVehicle())
RemoveVehicleKit();