diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-12-09 06:58:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 06:58:50 +0100 |
commit | 36763f65e6b56b11f1f3e96ed7103304cce76532 (patch) | |
tree | 8848d99e57a7c3cf144d1a8a045077e9f1459344 | |
parent | 75e558e271a3a2d5f291c9ba20b64a58d4c9f986 (diff) | |
parent | da65b61edb1c5df8da5aac534af96efd4dcda425 (diff) |
Merge pull request #69791 from adamscott/fix-autocomplete-guess-crash
Fix autocomplete crash as it would infinite loop
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 1456612915..693863ab38 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); } } |