aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index 500947a321c..d93716de0af 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -515,8 +515,8 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
}
}
- if(unit->isVehicle())
- _player->EnterVehicle((Vehicle*)unit);
+ if(unit->IsVehicle())
+ _player->EnterVehicle(unit);
unit->AI()->DoAction(EVENT_SPELLCLICK);
}