Merge pull request #65411 from lawnjelly/flow_container_uninit

FlowContainer fix uninitialized data
This commit is contained in:
Rémi Verschelde 2022-09-06 12:31:11 +02:00
commit e2030748b0

View file

@ -243,6 +243,8 @@ int FlowContainer::get_line_count() const {
FlowContainer::FlowContainer(bool p_vertical) { FlowContainer::FlowContainer(bool p_vertical) {
vertical = p_vertical; vertical = p_vertical;
cached_size = 0;
cached_line_count = 0;
} }
void FlowContainer::_bind_methods() { void FlowContainer::_bind_methods() {