mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
Fixed a bug in the flagdef processing code.
This commit is contained in:
parent
e63b6d494a
commit
af17864968
1 changed files with 1 additions and 1 deletions
|
@ -1612,7 +1612,7 @@ bool ZCCCompiler::CompileFlagDefs(PClass *type, TArray<ZCC_FlagDef *> &Propertie
|
||||||
{
|
{
|
||||||
Error(p, "Variable %s not found in %s", referenced.GetChars(), type->TypeName.GetChars());
|
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());
|
Error(p, "Variable %s in %s must have a size of 4 bytes for use as flag storage", referenced.GetChars(), type->TypeName.GetChars());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue