Laserlicht 1 year ago
parent
commit
8b1c038415
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/lobby/OptionsTab.cpp

+ 1 - 1
client/lobby/OptionsTab.cpp

@@ -508,7 +508,7 @@ void OptionsTab::SelectionWindow::recreate(int sliderPos)
 	else
 	else
 	{
 	{
 		std::tie(amountLines, elementsPerLine) = calcLines((type > SelType::TOWN) ? selectedFaction : FactionID::RANDOM);
 		std::tie(amountLines, elementsPerLine) = calcLines((type > SelType::TOWN) ? selectedFaction : FactionID::RANDOM);
-		if(amountLines > 1)
+		if(amountLines > 1 || elementsPerLine == 0)
 			elementsPerLine = MAX_ELEM_PER_LINES;
 			elementsPerLine = MAX_ELEM_PER_LINES;
 	}
 	}