aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_mempool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_mempool.c')
-rw-r--r--src/lua/lua_mempool.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}