From c34169d19d421748b12399dce4dac62640370153 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sun, 5 May 2013 05:35:12 +0000 Subject: [PATCH] bugfix, do not reset selected factions if there is only 1 techtree --- source/glest_game/menu/menu_state_custom_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index 03c30fdeb..481f41c1c 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -1231,7 +1231,7 @@ void MenuStateCustomGame::mouseClick(int x, int y, MouseButton mouseButton) { } } else if(listBoxTechTree.mouseClick(x, y,advanceToItemStartingWith)){ - reloadFactions(false,(checkBoxScenario.getValue() == true ? scenarioFiles[listBoxScenario.getSelectedItemIndex()] : "")); + reloadFactions(listBoxTechTree.getItemCount() <= 1,(checkBoxScenario.getValue() == true ? scenarioFiles[listBoxScenario.getSelectedItemIndex()] : "")); MutexSafeWrapper safeMutex((publishToMasterserverThread != NULL ? publishToMasterserverThread->getMutexThreadObjectAccessor() : NULL),string(__FILE__) + "_" + intToStr(__LINE__));