Browse Source

Fix editor help crash

rune-scape 2 years ago
parent
commit
0591f0ad37
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/editor_help_search.cpp

+ 4 - 0
editor/editor_help_search.cpp

@@ -443,6 +443,10 @@ bool EditorHelpSearch::Runner::_phase_member_items_init() {
 }
 
 bool EditorHelpSearch::Runner::_phase_member_items() {
+	if (!iterator_match) {
+		return true;
+	}
+
 	ClassMatch &match = iterator_match->value;
 
 	if (!match.doc || match.doc->name.is_empty()) {