1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Compile fixes for Visual.

This commit is contained in:
DjWarmonger
2014-09-05 20:13:58 +02:00
parent a89512111c
commit ec8476d43a
6 changed files with 28 additions and 12 deletions

View File

@@ -297,7 +297,12 @@ void CHeroWindow::update(const CGHeroInstance * hero, bool redrawNeeded /*= fals
void CHeroWindow::dismissCurrent()
{
CFunctionList<void()> ony = std::bind(&CHeroWindow::close,this);
ony += std::bind(&CCallback::dismissHero, LOCPLINT->cb.get(), curHero);
//ony += std::bind(&CCallback::dismissHero, LOCPLINT->cb.get(), curHero); //can't assign bool function to void function list :(
auto dismiss = [=]() -> void
{
LOCPLINT->cb.get()->dismissHero(curHero);
};
ony += dismiss;
LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[22], ony, 0, false);
}