diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 75b8be5895..397a6ffccc 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -11721,7 +11721,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced) uint32 owner_speed_mod = 0; if (Unit * owner = GetCharmer()) - uint32 owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED); + owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED); main_speed_mod = main_speed_mod>owner_speed_mod ? main_speed_mod : owner_speed_mod; }