From 43c36db5fc926dbf2ce0778d5d841fa3664eb4e7 Mon Sep 17 00:00:00 2001 From: PRESFIL Date: Sat, 5 Jul 2025 19:26:22 +0000 Subject: [PATCH] chore(lua): Add empty newlines for code readability --- src/rpc/lua.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/lua.cc b/src/rpc/lua.cc index 442b70db..2bd501a5 100644 --- a/src/rpc/lua.cc +++ b/src/rpc/lua.cc @@ -53,8 +53,10 @@ LuaEngine::override_package_path() { auto l_state = m_luaState; lua_getglobal(l_state, "package"); lua_getfield(l_state, -1, "path"); + std::string current_path(lua_tostring(l_state, -1)); std::string new_path = local_path + ';' + current_path; + lua_pushstring(l_state, new_path.c_str()); lua_setfield(l_state, -3, "path"); lua_pop(l_state, 2);