mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Fix autocomplete crash as it would infinite loop
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user