Browse Source

FindBar fix uninitialized results_count

Found by Valgrind.

(cherry picked from commit c254e97c6b376f035235559f7f46158167f80d21)
lawnjelly 3 years ago
parent
commit
28800cfb23
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/editor_help.cpp

+ 2 - 0
editor/editor_help.cpp

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