diff options
author | est31 <MTest31@outlook.com> | 2015-12-20 03:36:47 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-12-20 03:36:47 +0100 |
commit | f192a5bc43951f7ea120877335e97efe755ac29c (patch) | |
tree | f347057497c7b7a66047707ef264624d564fd800 /src | |
parent | 70ea5d552e283bd5bce3278cbf3819bd87ba2602 (diff) | |
download | minetest-f192a5bc43951f7ea120877335e97efe755ac29c.tar.gz minetest-f192a5bc43951f7ea120877335e97efe755ac29c.tar.bz2 minetest-f192a5bc43951f7ea120877335e97efe755ac29c.zip |
Fix missing pop
Previous commit
70ea5d552e283bd5bce3278cbf3819bd87ba2602 "Add support for limiting rotation of automatic face movement dir entitys"
by sapier has broken minetest's feature to open worlds. This was due to a
missing stack pop operation.
Thanks to @oleastre for reporting this bug and suggesting the fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/script/common/c_content.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index f9370c4dc..89f927f10 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -209,6 +209,7 @@ void read_object_properties(lua_State *L, int index, if (read_color(L, -1, &color)) prop->nametag_color = color; } + lua_pop(L, 1); lua_getfield(L, -1, "automatic_face_movement_max_rotation_per_sec"); if (lua_isnumber(L, -1)) { |