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

This commit is contained in:
Andrey Filipenkov authored and Ivan Savenko committed 2023-01-20 15:14:15 +02:00
1 parent 883b08e2c1
commit 1b3c07eda4
1 file changed
+1 -1
+1 -1
View File
@@ -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())
{