rail_cmd.c
changeset 4790 69e0d03632c9
parent 4739 e626ef1b522e
child 4792 a6fa5fc79715
--- a/rail_cmd.c	Tue Oct 10 06:19:46 2006 +0000
+++ b/rail_cmd.c	Tue Oct 10 07:56:23 2006 +0000
@@ -893,7 +893,7 @@
 			/* 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);
 			}