projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2099d4
)
Fix buffer parameter not working in LuaPerlinNoiseMap::l_getMapSlice()
author
Pedro Gimeno
<pggh-66ra@personal.formauri.es>
Mon, 8 Jan 2018 20:32:15 +0000
(21:32 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000
(17:32 +0200)
src/script/lua_api/l_noise.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_noise.cpp
b/src/script/lua_api/l_noise.cpp
index e3e76191f841adefef4693f7695a751a80fec007..90b8864d29e5c80d8564383aa779763e7c648ccb 100644
(file)
--- 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);