aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-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 7e76001c1..85e908356 100644
--- a/src/script/lua_api/l_noise.cpp
+++ b/src/script/lua_api/l_noise.cpp
@@ -311,7 +311,7 @@ int LuaPerlinNoiseMap::l_get_map_slice(lua_State *L)
Noise *n = o->noise;
if (use_buffer)
- lua_pushvalue(L, 3);
+ lua_pushvalue(L, 4);
else
lua_newtable(L);