src/town_gui.cpp
changeset 9652 0405e98d8e96
parent 9627 3497448171a8
child 9659 187142ff9b6c
--- a/src/town_gui.cpp	Thu Jul 17 16:38:26 2008 +0000
+++ b/src/town_gui.cpp	Thu Jul 17 20:13:01 2008 +0000
@@ -781,7 +781,7 @@
 
 void ShowBuildTownWindow()
 {
-	if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return;
+	if (_game_mode != GM_EDITOR && !IsValidPlayerID(_current_player)) return;
 	AllocateWindowDescFront<ScenarioEditorTownGenerationWindow>(&_scen_edit_town_gen_desc, 0);
 }