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 authored and ariel- committed 2016-01-11 01:51:46 -03:00
1 parent 308d30417c
commit 5ebfe5a297
1 file changed
+3 -2
@@ -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: