- bugfixes for lobby UI when map changes and player index is invalid

This commit is contained in:
Mark Vejvoda
2011-09-02 00:08:35 +00:00
parent 0a2c929fea
commit e44170ea00
3 changed files with 34 additions and 9 deletions

View File

@@ -1541,7 +1541,7 @@ void MenuStateCustomGame::switchSetupForSlots(SwitchSetupRequest **switchSetupRe
}
if(listBoxControls[switchFactionIdx].getSelectedItemIndex() == ctNetworkUnassigned) {
serverInterface->removeSlot(i);
serverInterface->removeSlot(switchFactionIdx);
listBoxControls[switchFactionIdx].setSelectedItemIndex(ctClosed);
labelPlayers[switchFactionIdx].setVisible(switchFactionIdx+1 <= mapInfo.players);