aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-17 15:08:58 -0500
committermegamage <none@none>2009-04-17 15:08:58 -0500
commitc7d78b5ff930b433c7f09471e825b79e6d9bee4f (patch)
tree127c9aed7e8ac65d379ac4bcdd18fc73049e3e37 /src/game/SpellEffects.cpp
parentaf935468df3af499bcae5018845ea6609f026a5b (diff)
*Some work on vehicles.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 775c51b75df..ae468f0fdbb 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6525,8 +6525,7 @@ void Spell::SummonVehicle(uint32 entry, SummonPropertiesEntry const *properties)
if(damage)
{
m_caster->CastSpell(vehicle, damage, true);
- if(m_caster->GetTypeId() == TYPEID_PLAYER)
- ((Player*)m_caster)->EnterVehicle(vehicle);
+ vehicle->AddPassenger(m_caster);
}
}