Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Jan 7, 2025
1 parent 789ea57 commit 6174723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scriptengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sol::table require(sol::state &lua, const std::string &module) {

class lua_loopable : public framework::loopable {
public:
lua_loopable(const sol::state &lua, sol::function function)
lua_loopable(const sol::state &lua, sol::protected_function function)
: _gc(lua["collectgarbage"]), _function(std::move(function)) {}

virtual ~lua_loopable() = default;
Expand All @@ -49,7 +49,7 @@ class lua_loopable : public framework::loopable {

private:
sol::function _gc;
sol::function _function;
sol::protected_function _function;
};

auto _to_lua(const nlohmann::json &value, sol::state_view lua) -> sol::object {
Expand Down

0 comments on commit 6174723

Please sign in to comment.