From c8936855cddb07e62c395d5a9a77126ee810fbaa Mon Sep 17 00:00:00 2001 From: actboy168 Date: Fri, 18 Aug 2023 23:25:18 +0800 Subject: [PATCH] fixes bug --- 3rd/lua-seri/lua-seri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rd/lua-seri/lua-seri.c b/3rd/lua-seri/lua-seri.c index 608092bb..558156bb 100644 --- a/3rd/lua-seri/lua-seri.c +++ b/3rd/lua-seri/lua-seri.c @@ -789,7 +789,7 @@ seri_unpack(lua_State *L, void *buffer) { struct read_block rb; rball_init(&rb, (char *)buffer + 4, len); lua_pushnil(L); // slot for ref table - rb.s.ref_index = 1; + rb.s.ref_index = top + 1; int i; for (i=0;;i++) {