mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
Fixed multidimensional array definitions.
This commit is contained in:
parent
494dc20088
commit
e9ca5d6eff
1 changed files with 11 additions and 0 deletions
|
@ -1844,6 +1844,17 @@ PType *ZCCCompiler::ResolveArraySize(PType *baseType, ZCC_Expression *arraysize,
|
||||||
return baseType;
|
return baseType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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);
|
FCompileContext ctx(OutNamespace, cls, false);
|
||||||
for (auto node : indices)
|
for (auto node : indices)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue