Clone and copy ControlPointInfo when retrieving a playable beatmap

This commit is contained in:
Dean Herbert
2021-01-04 16:37:07 +09:00
parent cd7a5ca23a
commit ba4e411422
11 changed files with 86 additions and 6 deletions

View File

@ -72,5 +72,13 @@ namespace osu.Game.Beatmaps.ControlPoints
=> existing is SampleControlPoint existingSample
&& SampleBank == existingSample.SampleBank
&& SampleVolume == existingSample.SampleVolume;
public override void CopyFrom(ControlPoint other)
{
SampleVolume = ((SampleControlPoint)other).SampleVolume;
SampleBank = ((SampleControlPoint)other).SampleBank;
base.CopyFrom(other);
}
}
}