UI: Fixed regression in entity binding logic

This commit is contained in:
Souryo 2017-08-13 15:56:23 -04:00
parent 8a2c2dc834
commit 0ba1c362d0

View File

@ -152,7 +152,7 @@ namespace Mesen.GUI.Forms
object value = kvp.Value.Text;
NumberStyles numberStyle = format == eNumberFormat.Decimal ? NumberStyles.Integer : NumberStyles.HexNumber;
value = ((string)value).Trim().Replace("$", "").Replace("0x", "");
if(string.IsNullOrWhiteSpace((string)value)) {
if(field.FieldType != typeof(string) && string.IsNullOrWhiteSpace((string)value)) {
value = "0";
}
if(field.FieldType == typeof(UInt32)) {