mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Move local variables
This commit is contained in:
parent
1126f38a1e
commit
cf6b6020a0
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ namespace LuaUtil
|
|||
|
||||
sol::table callbackMeta = Callback::makeMetatable(L);
|
||||
api["callback"] = [callbackMeta](const AsyncPackageId& asyncId, sol::main_protected_function fn) -> sol::table {
|
||||
return Callback::make(asyncId, fn, callbackMeta);
|
||||
return Callback::make(asyncId, std::move(fn), callbackMeta);
|
||||
};
|
||||
|
||||
auto initializer = [](sol::table hiddenData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue