Skip to content
Permalink
Browse files

Fixed a bug in the flagdef processing code.

  • Loading branch information...
Doom2fan committed Nov 1, 2019
1 parent e63b6d4 commit af17864968a572f109b96eb7905e3c79470b5275
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripting/zscript/zcc_compile.cpp
@@ -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());
}
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());
}

0 comments on commit af17864

Please sign in to comment.
You can’t perform that action at this time.