Fixed compilation error reported by GCC

This commit is contained in:
alexey.lysiuk 2017-03-13 21:45:03 +02:00
parent 6037ecb6a1
commit 3a039b1e44
1 changed files with 1 additions and 1 deletions

View File

@ -1236,7 +1236,7 @@ bool ZCCCompiler::CompileFields(PStruct *type, TArray<ZCC_VarDeclarator *> &Fiel
if (OutNamespace->Symbols.AddSymbol(field) == nullptr)
{ // name is already in use
field->Destroy();
return nullptr;
return false;
}
}
}