aboutsummaryrefslogtreecommitdiff
path: root/src/game/Debugcmds.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/Debugcmds.cpp
parente20e65ced9efd11a009fd63bcd4047ecc4bd3e63 (diff)
*Fix the bug that all vehicles are broken.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Debugcmds.cpp')
-rw-r--r--src/game/Debugcmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Debugcmds.cpp b/src/game/Debugcmds.cpp
index 940edeb74c2..1febf06638c 100644
--- a/src/game/Debugcmds.cpp
+++ b/src/game/Debugcmds.cpp
@@ -718,7 +718,7 @@ bool ChatHandler::HandleDebugEnterVehicle(const char * args)
if(!passenger || passenger == target)
return false;
- ((Vehicle*)target)->AddPassenger(passenger);
+ passenger->EnterVehicle(target);
PSendSysMessage("Creature entered vehicle");
return true;