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:
parent
405f327836
commit
62e70debe9
|
@ -4903,7 +4903,7 @@ void MenuStateConnectedGame::setupUIFromGameSettings(GameSettings *gameSettings,
|
||||||
labelPlayerNames[slot].setEditable(false);
|
labelPlayerNames[slot].setEditable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(i >= gameSettings->getFactionCount()) {
|
if(i >= mapInfo.players) {
|
||||||
if( gameSettings->getFactionControl(i) != ctNetworkUnassigned) {
|
if( gameSettings->getFactionControl(i) != ctNetworkUnassigned) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue