We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0e9df0 commit 9bf6a15Copy full SHA for 9bf6a15
apps/openmw/mwlua/uibindings.cpp
@@ -288,7 +288,8 @@ namespace MWLua
288
};
289
api["_setWindowDisabled"]
290
= [windowManager, luaManager = context.mLuaManager](std::string window, bool disabled) {
291
- luaManager->addAction([=]() { windowManager->setDisabledByLua(window, disabled); });
+ luaManager->addAction(
292
+ [=, window = std::move(window)]() { windowManager->setDisabledByLua(window, disabled); });
293
294
295
// TODO
0 commit comments