src/town_gui.cpp
changeset 9143 029e126e3439
parent 9127 14f21c5954ee
child 9161 fda175383e87
--- a/src/town_gui.cpp	Thu May 08 11:31:41 2008 +0000
+++ b/src/town_gui.cpp	Thu May 08 11:50:34 2008 +0000
@@ -268,7 +268,7 @@
 
 static void ShowTownAuthorityWindow(uint town)
 {
-	Window *w = AllocateWindowDescFront(&_town_authority_desc, town);
+	Window *w = AllocateWindowDescFront<Window>(&_town_authority_desc, town);
 
 	if (w != NULL) {
 		w->vscroll.cap = 5;
@@ -397,7 +397,7 @@
 {
 	Window *w;
 
-	w = AllocateWindowDescFront(&_town_view_desc, town);
+	w = AllocateWindowDescFront<Window>(&_town_view_desc, town);
 
 	if (w != NULL) {
 		w->flags4 |= WF_DISABLE_VP_SCROLL;
@@ -576,7 +576,7 @@
 
 void ShowTownDirectory()
 {
-	Window *w = AllocateWindowDescFront(&_town_directory_desc, 0);
+	Window *w = AllocateWindowDescFront<Window>(&_town_directory_desc, 0);
 
 	if (w != NULL) {
 		w->vscroll.cap = 16;
@@ -705,6 +705,6 @@
 void ShowBuildTownWindow()
 {
 	if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return;
-	AllocateWindowDescFront(&_scen_edit_town_gen_desc, 0);
+	AllocateWindowDescFront<Window>(&_scen_edit_town_gen_desc, 0);
 }