1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00
This commit is contained in:
Michael 2023-08-18 00:15:47 +02:00 committed by GitHub
parent af347242b4
commit 8635c24166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,6 +683,8 @@ void OptionsTab::SelectionWindow::setElement(int elem, bool doApply)
CPlayerSettingsHelper helper = CPlayerSettingsHelper(set, SelType::TOWN);
GH.windows().createAndPushWindow<CPlayerOptionTooltipBox>(helper);
}
else
selectedFaction = set.castle;
}
}
if(type == SelType::HERO)
@ -705,6 +707,8 @@ void OptionsTab::SelectionWindow::setElement(int elem, bool doApply)
CPlayerSettingsHelper helper = CPlayerSettingsHelper(set, SelType::HERO);
GH.windows().createAndPushWindow<CPlayerOptionTooltipBox>(helper);
}
else
selectedHero = set.hero;
}
}
if(type == SelType::BONUS)
@ -719,6 +723,8 @@ void OptionsTab::SelectionWindow::setElement(int elem, bool doApply)
CPlayerSettingsHelper helper = CPlayerSettingsHelper(set, SelType::BONUS);
GH.windows().createAndPushWindow<CPlayerOptionTooltipBox>(helper);
}
else
selectedBonus = set.bonus;
}
}