FindBar fix uninitialized results_count

Found by Valgrind.
This commit is contained in:
lawnjelly 2022-09-06 09:00:04 +01:00
parent 4d4c6c187d
commit c254e97c6b

View file

@ -1695,6 +1695,8 @@ EditorHelpBit::EditorHelpBit() {
} }
FindBar::FindBar() { FindBar::FindBar() {
results_count = 0;
search_text = memnew(LineEdit); search_text = memnew(LineEdit);
add_child(search_text); add_child(search_text);
search_text->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); search_text->set_custom_minimum_size(Size2(100 * EDSCALE, 0));