Use ctor rather than MemberwiseClone to guarantee a safer clone of BeatmapDifficulty

This commit is contained in:
Dean Herbert
2022-01-13 13:23:41 +09:00
parent 86b2ac3217
commit b77cb344d5
2 changed files with 3 additions and 6 deletions

View File

@ -208,6 +208,8 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
#region Overrides of BeatmapDifficulty
public override BeatmapDifficulty Clone() => new TaikoMultiplierAppliedDifficulty(this);
public override void CopyTo(BeatmapDifficulty other)
{
base.CopyTo(other);