Fix const structs in arrays without braces
This commit is contained in:
parent
4fff9f7060
commit
5b81379dac
|
@ -22913,7 +22913,7 @@ void InterCodeProcedure::Close(void)
|
|||
{
|
||||
GrowingTypeArray tstack(IT_NONE);
|
||||
|
||||
CheckFunc = !strcmp(mIdent->mString, "room_show");
|
||||
CheckFunc = !strcmp(mIdent->mString, "main");
|
||||
CheckCase = false;
|
||||
|
||||
mEntryBlock = mBlocks[0];
|
||||
|
|
|
@ -2347,12 +2347,15 @@ Expression* Parser::ParseConstInitExpression(Declaration* dtype, bool inner)
|
|||
last = cdec;
|
||||
}
|
||||
|
||||
if (!ConsumeTokenIf(TK_COMMA))
|
||||
break;
|
||||
|
||||
mdec = mdec->mNext;
|
||||
while (!mdec && path.Size())
|
||||
mdec = path.Pop()->mParams;
|
||||
|
||||
if (inner && !mdec)
|
||||
break;
|
||||
|
||||
if (!ConsumeTokenIf(TK_COMMA))
|
||||
break;
|
||||
}
|
||||
else if (inner)
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue