diff options
| author | ame <[email protected]> | 2026-03-19 20:38:47 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2026-03-19 20:38:47 -0500 |
| commit | 91738e3cee334ecc122ce11687c7e434c6bb581a (patch) | |
| tree | 2040cd300fee8bf315fc9d172919d3d0cae7ab83 /src/net/lua.c | |
| parent | 99152ab6cfd35e743d0f4366eec94f05d503848b (diff) | |
silly roll fix
Diffstat (limited to 'src/net/lua.c')
| -rw-r--r-- | src/net/lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
