From 28f3b4a530ab7aeb11e62bcaf33ceb26e2788d18 Mon Sep 17 00:00:00 2001 From: Andrew Lanzone Date: Fri, 4 Jul 2025 12:49:54 -0700 Subject: [PATCH] Remove unused argument from lambda to fix compiler warning --- apps/openmw/mwlua/inputbindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwlua/inputbindings.cpp b/apps/openmw/mwlua/inputbindings.cpp index 1a95ed4007..7cb727a83e 100644 --- a/apps/openmw/mwlua/inputbindings.cpp +++ b/apps/openmw/mwlua/inputbindings.cpp @@ -240,7 +240,7 @@ namespace MWLua api["isMouseButtonPressed"] = [](int button) -> bool { return SDL_GetMouseState(nullptr, nullptr) & SDL_BUTTON(button); }; api["_isGamepadCursorActive"] = [input]() -> bool { return input->isGamepadGuiCursorEnabled(); }; - api["_isControllerMenusEnabled"] = [input]() -> bool { return Settings::gui().mControllerMenus; }; + api["_isControllerMenusEnabled"] = []() -> bool { return Settings::gui().mControllerMenus; }; api["_setGamepadCursorActive"] = [input](bool v) { input->setGamepadGuiCursorEnabled(v); MWBase::Environment::get().getWindowManager()->setCursorActive(v);