mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- replaced assert() in ZScript fields compilation code
Field pointer can be null if error occurred while compiling its definition
This commit is contained in:
parent
6622801ad5
commit
e276f70dfa
1 changed files with 1 additions and 3 deletions
|
@ -1563,9 +1563,7 @@ bool ZCCCompiler::CompileFields(PContainerType *type, TArray<ZCC_VarDeclarator *
|
|||
f = type->AddField(name->Name, thisfieldtype, varflags);
|
||||
}
|
||||
|
||||
assert(f != nullptr);
|
||||
|
||||
if (field->Flags & (ZCC_Version | ZCC_Deprecated))
|
||||
if ((field->Flags & (ZCC_Version | ZCC_Deprecated)) && f != nullptr)
|
||||
{
|
||||
f->mVersion = field->Version;
|
||||
|
||||
|
|
Loading…
Reference in a new issue