From 32f0e2cbeabba472618fc8eb5a8c34c665053d26 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Fri, 24 Jan 2014 23:50:32 -0800 Subject: [PATCH] - attempt to fix reload game to not replace playernames --- 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 af632b74f..0d644cfbb 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -3833,6 +3833,11 @@ GameSettings MenuStateCustomGame::loadGameSettingsFromFile(std::string fileName) try { CoreData::getInstance().loadGameSettingsFromFile(fileName, &gameSettings); + + for(int i = 0; i < GameConstants::maxPlayers; ++i) { + gameSettings.setNetworkPlayerName(i,""); + } + // correct game settings for headless: if(this->headlessServerMode == true) { for(int i = 0; i < GameConstants::maxPlayers; ++i) {