diff options
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index 3c00d0d6e..ffb36ea4e 100644 --- a/train_gui.c +++ b/train_gui.c @@ -664,8 +664,7 @@ void ShowBuildTrainWindow(TileIndex tile) DeleteWindowById(WC_BUILD_VEHICLE, tile); - w = AllocateWindowDesc(&_new_rail_vehicle_desc); - w->window_number = tile; + w = AllocateWindowDescFront(&_new_rail_vehicle_desc, tile); w->vscroll.cap = 8; w->widget[BUILD_TRAIN_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1; |