Improves logical checks for the default value so it's more sane and stable

Allows creation of polyhedrons via constructor with a origin and vector format, allowing to have default polyhedron values on triggers and physical zones
This commit is contained in:
JeffR 2022-02-14 01:07:39 -06:00
parent 68ae0ca96d
commit a0f8b29da7
5 changed files with 63 additions and 2 deletions

View file

@ -729,7 +729,7 @@ ImplementEnumType(_TamlFormatMode,
{
//If the field hasn't been changed from the default value, then don't bother writing it out
const char* fieldData = defaultObject->getDataField(fieldName, indexBuffer);
if (fieldData != '\0' && dStricmp(fieldData, pFieldValue) == 0)
if (fieldData && fieldData[0] != '\0' && dStricmp(fieldData, pFieldValue) == 0)
continue;
}