mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +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
13e6ea7796
commit
b9d4ce052b
1 changed files with 1 additions and 3 deletions
|
@ -1559,9 +1559,7 @@ bool ZCCCompiler::CompileFields(PContainerType *type, TArray<ZCC_VarDeclarator *
|
|||
Error(field, "Cannot declare non-native global variables. Tried to declare %s", FName(name->Name).GetChars());
|
||||
}
|
||||
|
||||
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