- bugfix for mixed up username when changing map and human player's slot is changed.

This commit is contained in:
Mark Vejvoda 2011-04-14 16:04:42 +00:00
parent 8bcca7080f
commit b897611a6b

View File

@ -2740,8 +2740,10 @@ void MenuStateCustomGame::updateControlers(){
} }
} }
if(!humanPlayer){ if(humanPlayer == false) {
listBoxControls[0].setSelectedItemIndex(ctHuman); listBoxControls[0].setSelectedItemIndex(ctHuman);
labelPlayerNames[0].setText("");
labelPlayerNames[0].setText(getHumanPlayerName());
} }
for(int i= mapInfo.players; i < GameConstants::maxPlayers; ++i) { for(int i= mapInfo.players; i < GameConstants::maxPlayers; ++i) {