mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix components_tests
This commit is contained in:
parent
4529af9b7f
commit
032d506aa7
2 changed files with 12 additions and 12 deletions
|
@ -46,7 +46,7 @@ namespace LuaUtil
|
|||
bool ok = false;
|
||||
mLua.protectedCall([&](LuaView& view) {
|
||||
std::optional<sol::function> onInit, onLoad;
|
||||
bool ok = addScript(view, scriptId, onInit, onLoad);
|
||||
ok = addScript(view, scriptId, onInit, onLoad);
|
||||
if (ok && onInit)
|
||||
callOnInit(view, scriptId, *onInit, initData);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue