aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorPedro Gimeno <pggh-66ra@personal.formauri.es>2018-01-08 21:32:15 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit6b5e2618fbb91cbc7e68ef0fe2f6452cc6de3d5f (patch)
tree4df252558c2de7a95b3adfd64e083c8d3726fc72 /src/script/lua_api
parentb2099d42776510a78940fd2a6ea87e2d63f77216 (diff)
downloadminetest-6b5e2618fbb91cbc7e68ef0fe2f6452cc6de3d5f.tar.gz
minetest-6b5e2618fbb91cbc7e68ef0fe2f6452cc6de3d5f.tar.bz2
minetest-6b5e2618fbb91cbc7e68ef0fe2f6452cc6de3d5f.zip
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_noise.cpp2
1 files changed, 1 insertions, 1 deletions
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);