diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-08-14 06:03:10 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-09-11 11:35:25 +0200 |
commit | 7c79e361f515b405910467118d37ce1ff8eb5872 (patch) | |
tree | 3083781fae93224c6b7abd9ad60eb49de3c89621 /modules | |
parent | d72f12a561179719d8a1228221ba13c7c029be17 (diff) |
Fix parameter type resolution in GDScript
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index f090e7db25..ad0988932f 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1398,8 +1398,7 @@ void GDScriptAnalyzer::resolve_parameter(GDScriptParser::ParameterNode *p_parame } if (p_parameter->datatype_specifier != nullptr) { - resolve_datatype(p_parameter->datatype_specifier); - result = p_parameter->datatype_specifier->get_datatype(); + result = resolve_datatype(p_parameter->datatype_specifier); result.is_meta_type = false; if (p_parameter->default_value != nullptr) { |