summaryrefslogtreecommitdiff
path: root/proxy_await.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy_await.c')
-rw-r--r--proxy_await.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_await.c b/proxy_await.c
index 5e379db..4a548a3 100644
--- a/proxy_await.c
+++ b/proxy_await.c
@@ -380,7 +380,7 @@ int mcplib_await_return(io_pending_proxy_t *p) {
// couldn't find a table.insert() equivalent; so this is
// inserting into the length + 1 position manually.
//dump_stack(L);
- lua_rawseti(L, 1, lua_rawlen(L, 1) + 1); // pops mcpres
+ lua_rawseti(L, -2, lua_rawlen(L, 1) + 1); // pops mcpres
lua_pop(L, 1); // pops restable
}