mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
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:
parent
02bc20b736
commit
e49c91960b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue