diff --git a/src/scriptengine.cpp b/src/scriptengine.cpp index 77c5f07..7bf6fea 100644 --- a/src/scriptengine.cpp +++ b/src/scriptengine.cpp @@ -24,7 +24,7 @@ sol::table require(sol::state &lua, std::string_view module) { const auto script = std::string(data.begin(), data.end()); const auto result = lua.script(script); - return result; + return result.get(); } void scriptengine::run() {