@@ -809,7 +809,7 @@ void VCAI::showBlockingDialog(const std::string &text, const std::vector<Compone
if(!selection && cancel) //yes&no -> always answer yes, we are a brave AI :)
sel = 1;
- requestActionASAP([&]()
+ requestActionASAP([=]()
{
cb->selectionMade(sel, askID);
});
@@ -2114,6 +2114,9 @@ void OptionsTab::flagPressed( int color )
if(old)
entries[old->color]->selectButtons();
+ if(old->hero >= 0)
+ usedHeroes.erase(old->hero);
+
old->hero = entries[old->color]->pi.defaultHero();
}