diff options
author | George Marques <george@gmarqu.es> | 2021-05-26 15:33:18 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-05-26 15:33:18 -0300 |
commit | a23fc45727544142cc15e7ab96596b159a5bac42 (patch) | |
tree | 3930ca4ad71f443ad05149a60415691e2040beff /modules/gdscript/gdscript_analyzer.cpp | |
parent | 313e1f62bb4ed85041bcd9290ec76660878fcd6b (diff) | |
download | redot-engine-a23fc45727544142cc15e7ab96596b159a5bac42.tar.gz |
GDScript: Fix function signature check for self calls
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 7b04959227..c0e24b80cd 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2059,9 +2059,11 @@ void GDScriptAnalyzer::reduce_call(GDScriptParser::CallNode *p_call, bool is_awa if (p_call->is_super) { base_type = parser->current_class->base_type; + base_type.is_meta_type = false; is_self = true; } else if (callee_type == GDScriptParser::Node::IDENTIFIER) { base_type = parser->current_class->get_datatype(); + base_type.is_meta_type = false; is_self = true; } else if (callee_type == GDScriptParser::Node::SUBSCRIPT) { GDScriptParser::SubscriptNode *subscript = static_cast<GDScriptParser::SubscriptNode *>(p_call->callee); |