summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-10-12 10:41:04 -0300
committerGeorge Marques <george@gmarqu.es>2021-10-12 10:41:04 -0300
commit34288b24a6d43d0f9a314f4aaccbebe454f9f23e (patch)
tree7ddffc69d330ff96dc5fe371789f1880fdb53dfa /modules/gdscript/gdscript_analyzer.cpp
parentb67e68bce33ff6ee79b9f36d079f81464c12a9e0 (diff)
downloadredot-engine-34288b24a6d43d0f9a314f4aaccbebe454f9f23e.tar.gz
GDScript: Fix typed array with custom classes
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index fd7664049a..9ae8323680 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -470,6 +470,7 @@ GDScriptParser::DataType GDScriptAnalyzer::resolve_datatype(GDScriptParser::Type
GDScriptParser::DataType container_type = resolve_datatype(p_type->container_type);
if (container_type.kind != GDScriptParser::DataType::VARIANT) {
+ container_type.is_meta_type = false;
result.set_container_element_type(container_type);
}
}