summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 51b3a979b..877dec669 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -893,7 +893,7 @@ static int32 DoConvertRail(TileIndex tile, RailType totype, bool exec)
/* Update build vehicle window related to this depot */
w = FindWindowById(WC_BUILD_VEHICLE, tile);
if (w != NULL) {
- WP(w,buildtrain_d).railtype = totype;
+ WP(w,buildvehicle_d).railtype = totype;
SetWindowDirty(w);
}