Fixed a bug in the flagdef processing code.

This commit is contained in:
Chronos Ouroboros 2019-11-01 18:38:19 -03:00 committed by Christoph Oelckers
parent 4c7c1138aa
commit 39927dccab

View file

@ -1505,7 +1505,7 @@ bool ZCCCompiler::CompileFlagDefs(PClass *type, TArray<ZCC_FlagDef *> &Propertie
{
Error(p, "Variable %s not found in %s", referenced.GetChars(), type->TypeName.GetChars());
}
if (!field->Type->isInt() || field->Type->Size != 4)
else if (!field->Type->isInt() || field->Type->Size != 4)
{
Error(p, "Variable %s in %s must have a size of 4 bytes for use as flag storage", referenced.GetChars(), type->TypeName.GetChars());
}