Merge pull request #73964 from vonagam/fix-coroutine-compiler-type

GDScript: Fix address type for coroutine results
This commit is contained in:
Rémi Verschelde 2023-02-26 16:00:17 +01:00
commit 1bd0b296e1
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -85,7 +85,7 @@ void GDScriptCompiler::_set_error(const String &p_error, const GDScriptParser::N
}
GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::DataType &p_datatype, GDScript *p_owner) {
if (!p_datatype.is_set() || !p_datatype.is_hard_type()) {
if (!p_datatype.is_set() || !p_datatype.is_hard_type() || p_datatype.is_coroutine) {
return GDScriptDataType();
}