aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-21 14:05:54 -0500
committermegamage <none@none>2009-04-21 14:05:54 -0500
commit297498f1f7343f2c653075a45f36fcb46d833ef0 (patch)
tree03208854e2e66bcca87ab7b9a4e9d18ec54215e2 /src/game/SpellEffects.cpp
parente20e65ced9efd11a009fd63bcd4047ecc4bd3e63 (diff)
*Fix the bug that all vehicles are broken.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 30b53e9618c..13cb0448088 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6540,7 +6540,7 @@ void Spell::SummonVehicle(uint32 entry, SummonPropertiesEntry const *properties)
if(damage)
{
m_caster->CastSpell(vehicle, damage, true);
- vehicle->AddPassenger(m_caster);
+ m_caster->EnterVehicle(vehicle);
}
}