diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-12-19 01:12:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 01:12:35 +0100 |
commit | e780dc332a0a3f642a6daf8548cb211d79a2cc45 (patch) | |
tree | 57c7bcaf16c0d45d85b86b41d0584f003b862e42 /modules/gdscript | |
parent | 62a50827601c479d078053b1b4c83d3b2da13236 (diff) | |
parent | 9f6ad59da7905659cd16bc5fdb372c5992e1aab7 (diff) |
Merge pull request #70275 from rune-scape/autoload-subscript-regression
Fix autoload subscript regression
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 5af0b22d44..1a1c2193bf 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -3627,7 +3627,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri result_type = attr_type; p_subscript->is_constant = p_subscript->attribute->is_constant; p_subscript->reduced_value = p_subscript->attribute->reduced_value; - } else if (!base_type.is_constant) { + } else if (!base_type.is_meta_type || !base_type.is_constant) { valid = base_type.kind != GDScriptParser::DataType::BUILTIN; #ifdef DEBUG_ENABLED if (valid) { |