From da65b61edb1c5df8da5aac534af96efd4dcda425 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Thu, 8 Dec 2022 23:40:17 -0500 Subject: [PATCH] Fix autocomplete crash as it would infinite loop --- modules/gdscript/gdscript_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 14566129154..693863ab38c 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -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); } }