ship_gui.c
changeset 5125 60b21cf18b50
parent 5078 130939b8e39e
child 5198 2547d72f2db4
--- a/ship_gui.c	Sat Nov 18 16:47:02 2006 +0000
+++ b/ship_gui.c	Sat Nov 18 17:04:44 2006 +0000
@@ -357,8 +357,7 @@
 
 	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;