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:
parent
9597f9d46b
commit
ea2c67ca5f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user