From f192a5bc43951f7ea120877335e97efe755ac29c Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 20 Dec 2015 03:36:47 +0100 Subject: [PATCH] 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. --- src/script/common/c_content.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index f9370c4d..89f927f1 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)) {