Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
etorth committed Jan 25, 2025
1 parent e395bb8 commit 1e5b1c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/luamodule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LuaModule
virtual ~LuaModule() = default;

public:
sol::state &getLuaState()
sol::state &getState()
{
return m_luaState;
}
Expand Down
4 changes: 2 additions & 2 deletions server/src/serverluacoroutinerunner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class ServerLuaCoroutineRunner: public ServerLuaModule
: key(argKey)
, seqID(argSeqID)
, onDone(std::move(argOnDone))
, runner(sol::thread::create(argLuaModule.getLuaState().lua_state()))
, runner(sol::thread::create(argLuaModule.getState().lua_state()))
, callback(sol::state_view(runner.state())["_RSVD_NAME_luaCoroutineRunner_main"])
{
fflassert(key);
Expand All @@ -223,7 +223,7 @@ class ServerLuaCoroutineRunner: public ServerLuaModule
: key(argKey)
, seqID(argSeqID)
, onDone(std::move(argOnDone))
, runner(sol::thread::create(argLuaModule.getLuaState().lua_state()))
, runner(sol::thread::create(argLuaModule.getState().lua_state()))
, callback(runner.state(), sol::ref_index(func.registry_index())) // callback initialized as: https://github.com/ThePhD/sol2/issues/836
{
fflassert(key);
Expand Down

0 comments on commit 1e5b1c4

Please sign in to comment.