1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

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

This commit is contained in:
Andrey Filipenkov 2023-01-19 20:35:32 +03:00 committed by Ivan Savenko
parent 883b08e2c1
commit 1b3c07eda4

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())
{