diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index f62052de33..6174522cf3 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1835,6 +1835,17 @@ PType *ZCCCompiler::ResolveArraySize(PType *baseType, ZCC_Expression *arraysize, return baseType; } + if (mVersion >= MakeVersion(3, 7, 2)) + { + TArray fixedIndices; + for (auto node : indices) + { + fixedIndices.Insert (0, node); + } + + indices = std::move(fixedIndices); + } + FCompileContext ctx(OutNamespace, cls, false); for (auto node : indices) {