mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
fix
This commit is contained in:
@@ -262,7 +262,7 @@ void BattleOnlyModeHeroSelector::setHeroIcon()
|
||||
setHeroIcon();
|
||||
parent.setOkButtonEnabled();
|
||||
}, selectedIndex, images, true, true);
|
||||
window->onPopup = [this, heroes](int index) {
|
||||
window->onPopup = [heroes](int index) {
|
||||
if(index == 0)
|
||||
return;
|
||||
index--;
|
||||
@@ -344,7 +344,7 @@ void BattleOnlyModeHeroSelector::setCreatureIcons()
|
||||
setCreatureIcons();
|
||||
});
|
||||
}, selectedIndex, images, true, true);
|
||||
window->onPopup = [this, creatures](int index) {
|
||||
window->onPopup = [creatures](int index) {
|
||||
if(index == 0)
|
||||
return;
|
||||
index--;
|
||||
|
||||
Reference in New Issue
Block a user