Merge pull request #47648 from Blackiris/fix-gdscript-editor-hangs

Fix infinite loop when guessing argument type from parent class
This commit is contained in:
Rémi Verschelde 2021-04-07 23:19:29 +02:00 committed by GitHub
commit 40dff7117a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1745,8 +1745,8 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context,
return true;
}
}
base_type = base_type.class_type->base_type;
}
base_type = base_type.class_type->base_type;
break;
case GDScriptParser::DataType::NATIVE: {
if (id_type.is_set() && !id_type.is_variant()) {