Core/Misc: Random cleanup

This commit is contained in:
kaelima
2012-03-16 08:57:42 +01:00
parent acb3fde355
commit dce0a7d184
5 changed files with 39 additions and 43 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ void Vehicle::RemovePassenger(Unit* unit)
_me->ToCreature()->AI()->PassengerBoarded(unit, seat->first, false);
// only for flyable vehicles
if (unit->HasUnitMovementFlag(MOVEMENTFLAG_FLYING))
if (unit->IsFlying())
_me->CastSpell(unit, VEHICLE_SPELL_PARACHUTE, true);
if (GetBase()->GetTypeId() == TYPEID_UNIT)