mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Ensure detached when performing model Clone
operations on BeatmapInfo
/ScoreInfo
This commit is contained in:
@ -185,7 +185,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public int BeatmapVersion;
|
||||
|
||||
public BeatmapInfo Clone() => (BeatmapInfo)MemberwiseClone();
|
||||
public BeatmapInfo Clone() => (BeatmapInfo)this.Detach().MemberwiseClone();
|
||||
|
||||
public override string ToString() => this.GetDisplayTitle();
|
||||
|
||||
|
@ -131,7 +131,7 @@ namespace osu.Game.Scoring
|
||||
|
||||
public ScoreInfo DeepClone()
|
||||
{
|
||||
var clone = (ScoreInfo)MemberwiseClone();
|
||||
var clone = (ScoreInfo)this.Detach().MemberwiseClone();
|
||||
|
||||
clone.Statistics = new Dictionary<HitResult, int>(clone.Statistics);
|
||||
|
||||
|
Reference in New Issue
Block a user