2
0
Эх сурвалжийг харах

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

Andrey Filipenkov 2 жил өмнө
parent
commit
1b3c07eda4

+ 1 - 1
client/windows/QuickRecruitmentWindow.cpp

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