From fa4a32518073c5206c132c8f289a6750fce7a981 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Tue, 6 Sep 2022 08:45:39 +0100 Subject: [PATCH] FlowContainer fix uninitialized data This uninitialized data was finding its way into the renderer. --- scene/gui/flow_container.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/flow_container.cpp b/scene/gui/flow_container.cpp index d6d59de6ea3..21a107c2a3a 100644 --- a/scene/gui/flow_container.cpp +++ b/scene/gui/flow_container.cpp @@ -243,6 +243,8 @@ int FlowContainer::get_line_count() const { FlowContainer::FlowContainer(bool p_vertical) { vertical = p_vertical; + cached_size = 0; + cached_line_count = 0; } void FlowContainer::_bind_methods() {