Explorar el Código

buy units starting from the highest level in the "buy all units" dialog

Andrey Filipenkov hace 2 años
padre
commit
1b3c07eda4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/windows/QuickRecruitmentWindow.cpp

+ 1 - 1
client/windows/QuickRecruitmentWindow.cpp

@@ -101,7 +101,7 @@ void QuickRecruitmentWindow::maxAllCards(std::vector<std::shared_ptr<CreaturePur
 
 void QuickRecruitmentWindow::purchaseUnits()
 {
-	for(auto selected : cards)
+	for(auto selected : boost::adaptors::reverse(cards))
 	{
 		if(selected->slider->getValue())
 		{