]> git.lizzy.rs Git - minetest.git/commitdiff
Fix missing pop
authorest31 <MTest31@outlook.com>
Sun, 20 Dec 2015 02:36:47 +0000 (03:36 +0100)
committerest31 <MTest31@outlook.com>
Sun, 20 Dec 2015 02:36:47 +0000 (03:36 +0100)
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

index f9370c4dc6984ca9e6acacf5172658886912b985..89f927f1098ff0909d2cfc95b44ea28cf75fdc8f 100644 (file)
@@ -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)) {