1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 19:23:11 +08:00

Fix incorrect serialization condition

This commit is contained in:
smoogipoo
2017-12-07 11:10:34 +09:00
Unverified
parent 9597f9d46b
commit ea2c67ca5f
+2 -2
View File
@@ -28,7 +28,7 @@ namespace osu.Game.Audio
set { bank = value; }
}
public bool ShouldSerializeBank() => Bank == ControlPoint.SampleBank;
public bool ShouldSerializeBank() => Bank != ControlPoint.SampleBank;
/// <summary>
/// The name of the sample to load.
@@ -45,6 +45,6 @@ namespace osu.Game.Audio
set { volume = value; }
}
public bool ShouldSerializeVolume() => Volume == ControlPoint.SampleVolume;
public bool ShouldSerializeVolume() => Volume != ControlPoint.SampleVolume;
}
}