mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-10 19:41:28 +00:00
Force move the captured string
This commit is contained in:
parent
b0e9df0139
commit
9bf6a15ff5
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ namespace MWLua
|
||||||
};
|
};
|
||||||
api["_setWindowDisabled"]
|
api["_setWindowDisabled"]
|
||||||
= [windowManager, luaManager = context.mLuaManager](std::string window, bool disabled) {
|
= [windowManager, luaManager = context.mLuaManager](std::string window, bool disabled) {
|
||||||
luaManager->addAction([=]() { windowManager->setDisabledByLua(window, disabled); });
|
luaManager->addAction(
|
||||||
|
[=, window = std::move(window)]() { windowManager->setDisabledByLua(window, disabled); });
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
Loading…
Reference in a new issue