aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 75b8be58952..397a6ffccc5 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;
}