Core/Misc: Fix typo in f47962f670

This commit is contained in:
jackpoz
2014-03-31 21:10:29 +02:00
parent f47962f670
commit 10ba63cf3d
@@ -597,7 +597,7 @@ class boss_flame_leviathan_seat : public CreatureScript
turret->AI()->AttackStart(who);
}
if (Unit* devicePassenger = me->GetVehicleKit()->GetPassenger(SEAT_DEVICE))
if (Creature* device = device->ToCreature())
if (Creature* device = devicePassenger->ToCreature())
{
device->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
device->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);