Skip to content
Permalink
Browse files

Fixed a bug in the flagdef processing code.

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

0 comments on commit 39927dc

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