mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-10 07:41:25 +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"]
|
||||
= [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
|
||||
|
|
Loading…
Reference in a new issue