[HL25] Add field name null check when restoring
This commit is contained in:
parent
2f11031b33
commit
7b001c59ae
1 changed files with 1 additions and 1 deletions
|
@ -2255,7 +2255,7 @@ int CRestore::ReadField(void* pBaseData, TYPEDESCRIPTION* pFields, int fieldCoun
|
|||
{
|
||||
fieldNumber = (i + startField) % fieldCount;
|
||||
pTest = &pFields[fieldNumber];
|
||||
if (!stricmp(pTest->fieldName, pName))
|
||||
if (pTest->fieldName && !stricmp(pTest->fieldName, pName))
|
||||
{
|
||||
if (!m_global || (pTest->flags & FTYPEDESC_GLOBAL) == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue