diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 52ab582fafe..6d4bebecaef 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1818,6 +1818,17 @@ PType *ZCCCompiler::ResolveArraySize(PType *baseType, ZCC_Expression *arraysize, } while (node != arraysize); + 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) {