From: est31 Date: Sun, 20 Dec 2015 02:36:47 +0000 (+0100) Subject: Fix missing pop X-Git-Tag: 0.4.14~384 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f192a5bc43951f7ea120877335e97efe755ac29c;p=oweals%2Fminetest.git 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. --- 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)) {