From: Pedro Gimeno Date: Mon, 8 Jan 2018 20:32:15 +0000 (+0100) Subject: Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice() X-Git-Tag: 0.4.17~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6b5e2618fbb91cbc7e68ef0fe2f6452cc6de3d5f;p=oweals%2Fminetest.git Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice() --- diff --git a/src/script/lua_api/l_noise.cpp b/src/script/lua_api/l_noise.cpp index e3e76191f..90b8864d2 100644 --- a/src/script/lua_api/l_noise.cpp +++ b/src/script/lua_api/l_noise.cpp @@ -316,7 +316,7 @@ int LuaPerlinNoiseMap::l_getMapSlice(lua_State *L) Noise *n = o->noise; if (use_buffer) - lua_pushvalue(L, 3); + lua_pushvalue(L, 4); else lua_newtable(L);