Skip to content

Commit 9bf6a15

Browse files
committed
Force move the captured string
1 parent b0e9df0 commit 9bf6a15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/openmw/mwlua/uibindings.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ namespace MWLua
288288
};
289289
api["_setWindowDisabled"]
290290
= [windowManager, luaManager = context.mLuaManager](std::string window, bool disabled) {
291-
luaManager->addAction([=]() { windowManager->setDisabledByLua(window, disabled); });
291+
luaManager->addAction(
292+
[=, window = std::move(window)]() { windowManager->setDisabledByLua(window, disabled); });
292293
};
293294

294295
// TODO

0 commit comments

Comments
 (0)