From cedc5fa823dc64bcf500c87e8fe20a423994796a Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Thu, 9 Feb 2023 00:31:40 +0200 Subject: [PATCH] GDScript: Fix error about enum typed arrays --- modules/gdscript/gdscript_analyzer.cpp | 24 +++++++++++-------- .../analyzer/features/typed_array_usage.gd | 4 ++++ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 602d07d9a74..4828934afed 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -4264,18 +4264,22 @@ Variant GDScriptAnalyzer::make_subscript_reduced_value(GDScriptParser::Subscript Array GDScriptAnalyzer::make_array_from_element_datatype(const GDScriptParser::DataType &p_element_datatype, const GDScriptParser::Node *p_source_node) { Array array; - Ref