bugfix, do not reset selected factions if there is only 1 techtree

This commit is contained in:
Mark Vejvoda 2013-05-05 05:35:12 +00:00
parent 0f7f2ae287
commit c34169d19d

View File

@ -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__));