mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 18:41:33 +00:00
Merge branch 'more_move' into 'master'
Move action argument See merge request OpenMW/openmw!3844
This commit is contained in:
commit
557e83d502
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ namespace MWLua
|
||||||
for (unsigned i = 0; i < newStack.size(); ++i)
|
for (unsigned i = 0; i < newStack.size(); ++i)
|
||||||
newStack[i] = nameToMode.at(LuaUtil::cast<std::string_view>(modes[i + 1]));
|
newStack[i] = nameToMode.at(LuaUtil::cast<std::string_view>(modes[i + 1]));
|
||||||
luaManager->addAction(
|
luaManager->addAction(
|
||||||
[windowManager, newStack = std::move(newStack), arg]() {
|
[windowManager, newStack = std::move(newStack), arg = std::move(arg)]() {
|
||||||
MWWorld::Ptr ptr;
|
MWWorld::Ptr ptr;
|
||||||
if (arg.has_value())
|
if (arg.has_value())
|
||||||
ptr = arg->ptr();
|
ptr = arg->ptr();
|
||||||
|
|
Loading…
Reference in a new issue