mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:02:55 +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; }
|
set { bank = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ShouldSerializeBank() => Bank == ControlPoint.SampleBank;
|
public bool ShouldSerializeBank() => Bank != ControlPoint.SampleBank;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of the sample to load.
|
/// The name of the sample to load.
|
||||||
@ -45,6 +45,6 @@ namespace osu.Game.Audio
|
|||||||
set { volume = value; }
|
set { volume = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ShouldSerializeVolume() => Volume == ControlPoint.SampleVolume;
|
public bool ShouldSerializeVolume() => Volume != ControlPoint.SampleVolume;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user