Skip to content

Commit

Permalink
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Gimeno authored and rubenwardy committed Jan 8, 2018
1 parent 2992b77 commit 63f4ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lua_api/l_noise.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 63f4ee2

Please sign in to comment.