diff --git a/Subsurface/Source/Properties.cs b/Subsurface/Source/Properties.cs index 5e40813ff..a5aa106a2 100644 --- a/Subsurface/Source/Properties.cs +++ b/Subsurface/Source/Properties.cs @@ -258,14 +258,13 @@ namespace Barotrauma if (!saveIfDefault) { //only save - // - if the attribute is saveable - // - and it's different from the default value or can be changed in the editor + // - if the attribute is saveable and it's different from the default value + // - or can be changed in the editor bool save = false; foreach (var attribute in property.Attributes.OfType()) { - if (!attribute.isSaveable) continue; - - if (!attribute.defaultValue.Equals(value) || property.Attributes.OfType().Any()) + if ((!attribute.isSaveable && !attribute.defaultValue.Equals(value)) || + property.Attributes.OfType().Any()) { save = true; break;