Scripts/EyeOfEternity: Fix crash

Fix crash happening when a player would kill a Melee npc on the disks during Malygos fight and mount it before it ended the waypoint path.
Close #15900

(cherry picked from commit 6e296ddaa2)
This commit is contained in:
jackpoz
2015-11-26 21:47:50 +01:00
committed by ariel-
parent 308d30417c
commit 5ebfe5a297

View File

@@ -1244,8 +1244,9 @@ public:
++_wpCount;
}
else if (Vehicle* hoverDisk = me->GetVehicleKit())
if (Unit* lordPassenger = hoverDisk->GetPassenger(0))
lordPassenger->ToCreature()->AI()->DoAction(ACTION_SET_DISK_VICTIM_CHASE);
if (Unit* passenger = hoverDisk->GetPassenger(0))
if (Creature* lordPassenger = passenger->ToCreature())
lordPassenger->AI()->DoAction(ACTION_SET_DISK_VICTIM_CHASE);
}
private: