Skip to content

Commit

Permalink
Merge pull request #70275 from rune-scape/autoload-subscript-regression
Browse files Browse the repository at this point in the history
Fix autoload subscript regression
  • Loading branch information
akien-mga committed Dec 19, 2022
2 parents 62a5082 + 9f6ad59 commit e780dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e780dc3

Please sign in to comment.