Skip to content

Commit f192a5b

Browse files
committedDec 20, 2015
Fix missing pop
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.
1 parent 70ea5d5 commit f192a5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/script/common/c_content.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ void read_object_properties(lua_State *L, int index,
209209
if (read_color(L, -1, &color))
210210
prop->nametag_color = color;
211211
}
212+
lua_pop(L, 1);
212213

213214
lua_getfield(L, -1, "automatic_face_movement_max_rotation_per_sec");
214215
if (lua_isnumber(L, -1)) {

0 commit comments

Comments
 (0)
Please sign in to comment.