From 62e70debe94d1ac49fe6176228e330ea27c3d915 Mon Sep 17 00:00:00 2001 From: titiger Date: Sat, 21 Nov 2015 20:22:23 +0100 Subject: [PATCH] fixed "Reload Last Settings" on the headless server #84 Relaod still does not always work if some people are already connected. This makes trouble with network slots and slots in settings. In general #84 should be fixed with this. --- source/glest_game/menu/menu_state_connected_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index 44bb24087..c0212f628 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -4903,7 +4903,7 @@ void MenuStateConnectedGame::setupUIFromGameSettings(GameSettings *gameSettings, labelPlayerNames[slot].setEditable(false); } - if(i >= gameSettings->getFactionCount()) { + if(i >= mapInfo.players) { if( gameSettings->getFactionControl(i) != ctNetworkUnassigned) { continue; }