Skip to content

Commit

Permalink
Fixed multidimensional array definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doom2fan authored and coelckers committed Jan 12, 2019
1 parent dbe19ee commit b8fc4bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/scripting/zscript/zcc_compile.cpp
Expand Up @@ -1818,6 +1818,17 @@ PType *ZCCCompiler::ResolveArraySize(PType *baseType, ZCC_Expression *arraysize,
} while (node != arraysize);


if (mVersion >= MakeVersion(3, 7, 2))
{
TArray<ZCC_Expression *> fixedIndices;
for (auto node : indices)
{
fixedIndices.Insert (0, node);
}

indices = std::move(fixedIndices);
}

FCompileContext ctx(OutNamespace, cls, false);
for (auto node : indices)
{
Expand Down

0 comments on commit b8fc4bf

Please sign in to comment.