Merge pull request #69791 from adamscott/fix-autocomplete-guess-crash

Fix autocomplete crash as it would infinite loop
This commit is contained in:
Rémi Verschelde 2022-12-09 06:58:50 +01:00 committed by GitHub
commit 36763f65e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1612,7 +1612,7 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
} }
} }
if (!found) { if (!found && base.value.get_type() != Variant::NIL) {
found = _guess_method_return_type_from_base(c, base, call->function_name, r_type); found = _guess_method_return_type_from_base(c, base, call->function_name, r_type);
} }
} }