diff options
author | megamage <none@none> | 2009-04-21 14:05:54 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-21 14:05:54 -0500 |
commit | 297498f1f7343f2c653075a45f36fcb46d833ef0 (patch) | |
tree | 03208854e2e66bcca87ab7b9a4e9d18ec54215e2 /src/game/Debugcmds.cpp | |
parent | e20e65ced9efd11a009fd63bcd4047ecc4bd3e63 (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.cpp | 2 |
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; |