summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index b8a5b8073..7d3277a0e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -327,7 +327,8 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
rvi[i].power *= 2;
rvi[i].running_cost_base *= 2;
}
- rvi[i].railveh_type = RAILVEH_SINGLEHEAD;
+ rvi[i].railveh_type = rvi[i].power == 0 ?
+ RAILVEH_WAGON : RAILVEH_SINGLEHEAD;
}
}
break;