From 02fa995ce34de09a83f12d35dff212b3a6655c8f Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Wed, 29 Jan 2014 20:26:25 -0800 Subject: [PATCH] - bugfix when loading last game settings to retain player name --- source/glest_game/menu/menu_state_custom_game.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index b9b3b937..5b629297 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -3899,6 +3899,11 @@ void MenuStateCustomGame::KeepCurrentHumanPlayerSlots(GameSettings &gameSettings gameSettings.setNetworkPlayerName(index,getHumanPlayerName()); } } + + ControlType ctFile = static_cast(gameSettings.getFactionControl(index)); + if(ctFile == ctHuman) { + gameSettings.setFactionControl(index,ctHuman); + } } }