Skip to content

Commit

Permalink
Fix missing pop
Browse files Browse the repository at this point in the history
Previous commit

70ea5d5 "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.
  • Loading branch information
est31 committed Dec 20, 2015
1 parent 70ea5d5 commit f192a5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/script/common/c_content.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit f192a5b

Please sign in to comment.