src/newgrf_gui.cpp
changeset 10461 48556aee54da
parent 10434 d6accd017341
child 10484 e8beb2845f13
--- a/src/newgrf_gui.cpp	Wed May 07 23:00:11 2008 +0000
+++ b/src/newgrf_gui.cpp	Thu May 08 11:31:41 2008 +0000
@@ -408,7 +408,7 @@
 					Window *w;
 
 					DeleteWindowByClass(WC_SAVELOAD);
-					w = AllocateWindowDesc(&_newgrf_add_dlg_desc);
+					w = new Window(&_newgrf_add_dlg_desc);
 					w->resize.step_height = 10;
 
 					WP(w, newgrf_add_d).list = list;
@@ -582,7 +582,7 @@
 	Window *w;
 
 	DeleteWindowByClass(WC_GAME_OPTIONS);
-	w = AllocateWindowDesc(&_newgrf_desc);
+	w = new Window(&_newgrf_desc);
 	if (w == NULL) return;
 
 	w->resize.step_height = 14;