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.
This commit is contained in:
titiger 2015-11-21 20:22:23 +01:00
parent 405f327836
commit 62e70debe9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}