1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

fixes build on clang

This commit is contained in:
Laserlicht
2024-09-03 00:25:35 +02:00
committed by GitHub
parent ee64928454
commit 1c809bcb88

View File

@@ -177,7 +177,7 @@ static std::function<void()> genCommand(CMenuScreen * menu, std::vector<std::str
case 2:
return []() { CMainMenu::openLobby(ESelectionScreen::campaignList, true, {}, ELoadMode::NONE); };
case 3:
return std::bind(CMainMenu::startTutorial);
return []() { CMainMenu::startTutorial(); };
}
break;
}
@@ -199,12 +199,12 @@ static std::function<void()> genCommand(CMenuScreen * menu, std::vector<std::str
break;
case 4: //exit
{
return std::bind(CInfoWindow::showYesNoDialog, CGI->generaltexth->allTexts[69], std::vector<std::shared_ptr<CComponent>>(), do_quit, 0, PlayerColor(1));
return []() { CInfoWindow::showYesNoDialog(CGI->generaltexth->allTexts[69], std::vector<std::shared_ptr<CComponent>>(), do_quit, 0, PlayerColor(1)); };
}
break;
case 5: //highscores
{
return std::bind(CMainMenu::openHighScoreScreen);
return []() { CMainMenu::openHighScoreScreen(); };
}
}
}