mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Fix BeatmapDifficulty
cloning regression
This commit is contained in:
parent
b5975eee33
commit
286994a808
@ -191,6 +191,9 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
|
||||
|
||||
protected override Beatmap<TaikoHitObject> CreateBeatmap() => new TaikoBeatmap();
|
||||
|
||||
// Important to note that this is subclassing a realm object.
|
||||
// Realm doesn't allow this, but for now this can work since we aren't (in theory?) persisting this to the database.
|
||||
// It is only used during beatmap conversion and processing.
|
||||
internal class TaikoMultiplierAppliedDifficulty : BeatmapDifficulty
|
||||
{
|
||||
public TaikoMultiplierAppliedDifficulty(IBeatmapDifficultyInfo difficulty)
|
||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
public BeatmapDifficulty Clone()
|
||||
{
|
||||
var diff = new BeatmapDifficulty();
|
||||
var diff = (BeatmapDifficulty)MemberwiseClone();
|
||||
CopyTo(diff);
|
||||
return diff;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user