Explorar o código

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

Andrey Filipenkov %!s(int64=2) %!d(string=hai) anos
pai
achega
1b3c07eda4
Modificáronse 1 ficheiros con 1 adicións e 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())
 		{