summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-21 16:20:55 +0000
committersmatz <smatz@openttd.org>2011-01-21 16:20:55 +0000
commite308c348f0f1dad5d18349aba5c19a2a4b372df3 (patch)
tree0820ee7eec787cc4745488959df4a7100b8e7107 /src/roadveh_cmd.cpp
parent46dfdfd72b08191d408ad1a1417d8077020893a7 (diff)
downloadopenttd-e308c348f0f1dad5d18349aba5c19a2a4b372df3.tar.xz
(svn r21879) -Codechange: reset vehicle's GOINGUP/DOWN bits when it crashes
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index d084d37a8..59d979273 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -460,7 +460,7 @@ static Vehicle *EnumCheckRoadVehCrashTrain(Vehicle *v, void *data)
uint RoadVehicle::Crash(bool flooded)
{
- uint pass = Vehicle::Crash(flooded);
+ uint pass = this->GroundVehicleBase::Crash(flooded);
if (this->IsFrontEngine()) {
pass += 1; // driver