From 91738e3cee334ecc122ce11687c7e434c6bb581a Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 19 Mar 2026 20:38:47 -0500 Subject: silly roll fix --- src/net/lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/lua.c b/src/net/lua.c index d2b0d35..6e8c955 100644 --- a/src/net/lua.c +++ b/src/net/lua.c @@ -140,9 +140,9 @@ int l_roll(lua_State* L){ lua_gettable(L, 1); struct file_parse* data = (void*)lua_topointer(L, -1); - lua_pushvalue(L, 1); + lua_getfield(L, 1, "res"); lua_pushstring(L, "_"); - lua_gettable(L, 1); + lua_gettable(L, -2); struct net_data* ctx = lua_touserdata(L, -1); client_fd_errors(ctx->sock); -- cgit v1.2.3