summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 0dbe32468..90663533a 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -357,8 +357,7 @@ void ShowBuildShipWindow(TileIndex tile)
DeleteWindowById(WC_BUILD_VEHICLE, tile);
- w = AllocateWindowDesc(&_new_ship_desc);
- w->window_number = tile;
+ w = AllocateWindowDescFront(&_new_ship_desc, tile);
w->vscroll.cap = 4;
w->widget[2].data = (w->vscroll.cap << 8) + 1;