diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index 246681a95..1c7d0370a 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -2263,7 +2263,7 @@ void CPlayerInterface::waitForAllDialogs(bool unlockPim) void CPlayerInterface::proposeLoadingGame() { - showYesNoDialog(CGI->generaltexth->allTexts[68], [this](){ GH.pushUserEvent(EUserEvent::RETURN_TO_MENU_LOAD); }, nullptr); + showYesNoDialog(CGI->generaltexth->allTexts[68], [](){ GH.pushUserEvent(EUserEvent::RETURN_TO_MENU_LOAD); }, nullptr); } CPlayerInterface::SpellbookLastSetting::SpellbookLastSetting() diff --git a/client/gui/CGuiHandler.cpp b/client/gui/CGuiHandler.cpp index 48282d6b0..9817cd3c6 100644 --- a/client/gui/CGuiHandler.cpp +++ b/client/gui/CGuiHandler.cpp @@ -27,6 +27,14 @@ #include #include +#ifdef VCMI_APPLE +#include +#endif + +#ifdef VCMI_IOS +#include "ios/utils.h" +#endif + extern std::queue SDLEventsQueue; extern boost::mutex eventsM;