diff options
| author | QAston <none@none> | 2009-05-04 19:03:42 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-05-04 19:03:42 +0200 |
| commit | de1613d4ae675f55bbd043d3ca1e0d3d6b2fb725 (patch) | |
| tree | c0bc5c4b19e3494160cb87d09de04e15c83daba0 /src/game/Unit.cpp | |
| parent | dceb2b3a92852ff41ab80e80e0adaaae6dc04622 (diff) | |
*Fix a typo.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 0b48251dbca..bdb99cef05a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10219,7 +10219,9 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced) stack_bonus = GetTotalAuraMultiplier(SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS); // for some spells this mod is applied on vehicle owner - if (Unit * owner = (Vehicle*)this)->GetOwner()) + uint32 owner_speed_mod = 0; + + if (Unit * owner = ((Vehicle*)this)->GetCharmer()) uint32 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; |
