From c9167ec1e4c5d72770c2cefb00869fd8a0c14d49 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 2 May 2021 20:30:01 +0100 Subject: [Minor] Lua_mempool: Fix setting buckets of variables Reported by: Steve Sturges --- src/lua/lua_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 5f1fe46b3..356cf571f 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -488,7 +488,7 @@ lua_mempool_get_variable (lua_State *L) gdouble num; memcpy (&num, pv, sizeof (num)); lua_pushnumber (L, num); - lua_rawseti (L, -1, i + 1); + lua_rawseti (L, -2, i + 1); pv += sizeof (num); } } -- cgit v1.2.3