diff options
author | Spp <none@none> | 2010-04-19 16:56:24 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-19 16:56:24 +0200 |
commit | 2b81449f3eee38bb68a1b5ec0b4b272643683d98 (patch) | |
tree | a5258822777f114e84121a54989e015b117aba57 /src/game/Unit.cpp | |
parent | 6914ee67dcb1521abd8c1c2da54913768c0de16d (diff) |
Unit: Fix Unit Flight UpdateSpeed not getting charmer bonuses
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
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; } |