From a19d0033bc13528511ebe704af1c43733abfa790 Mon Sep 17 00:00:00 2001 From: sfence Date: Fri, 4 Oct 2024 10:42:37 +0200 Subject: [PATCH] Add forgotten lua_pop --- src/script/lua_api/l_object.cpp | 1 + 1 file changed, 1 insertion(+) 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