summaryrefslogtreecommitdiff
path: root/src/scriptapi_noise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scriptapi_noise.cpp')
-rw-r--r--src/scriptapi_noise.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scriptapi_noise.cpp b/src/scriptapi_noise.cpp
index 1dd6ef8e0..2c1a83c4c 100644
--- a/src/scriptapi_noise.cpp
+++ b/src/scriptapi_noise.cpp
@@ -269,6 +269,7 @@ NoiseParams *read_noiseparams(lua_State *L, int index)
np->scale = getfloatfield_default(L, index, "scale", 0.0);
lua_getfield(L, index, "spread");
np->spread = read_v3f(L, -1);
+ lua_pop(L, 1);
np->seed = getintfield_default(L, index, "seed", 0);
np->octaves = getintfield_default(L, index, "octaves", 0);
np->persist = getfloatfield_default(L, index, "persist", 0.0);
@@ -276,6 +277,7 @@ NoiseParams *read_noiseparams(lua_State *L, int index)
return np;
}
+
/*
LuaPseudoRandom
*/