1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Fix incorrect serialization condition

This commit is contained in:
smoogipoo 2017-12-07 11:10:34 +09:00
parent 9597f9d46b
commit ea2c67ca5f

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;
}
}