diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 1a732d9c6..a11308a2e 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -2626,6 +2626,7 @@ int ObjectRef::l_set_lighting(lua_State *L) getfloatfield(L, -1, "intensity", lighting.shadow_intensity); lua_getfield(L, -1, "tint"); read_color(L, -1, &lighting.shadow_tint); + lua_pop(L, 1); // tint } lua_pop(L, 1); // shadows