UDBScript: setting an UDMF string field to an empty string will not remove the field anymore, but actually set it to an empty string

This commit is contained in:
biwa 2022-11-27 16:49:05 +01:00
parent 02bc20b736
commit e49c91960b

View file

@ -231,7 +231,7 @@ namespace CodeImp.DoomBuilder.UDBScript.Wrapper
else if (newvalue is int)
UniFields.SetInteger(element.Fields, pname, (int)newvalue);
else if (newvalue is string)
UniFields.SetString(element.Fields, pname, (string)newvalue, string.Empty);
UniFields.SetString(element.Fields, pname, (string)newvalue, null);
else if (newvalue is bool)
element.Fields[pname] = new UniValue(UniversalType.Boolean, (bool)newvalue);
else if (newvalue is BigInteger nv)