mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 18:36:48 +02:00
- bugfixes for lobby UI when map changes and player index is invalid
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user