mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:13:21 +08:00
Fix BeatmapInfo.Clone
potentially not cloning if already detached
This commit is contained in:
parent
5dd0bb1218
commit
c831e9107a
@ -182,7 +182,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public int BeatmapVersion;
|
public int BeatmapVersion;
|
||||||
|
|
||||||
public BeatmapInfo Clone() => this.Detach();
|
public BeatmapInfo Clone() => (BeatmapInfo)this.Detach().MemberwiseClone();
|
||||||
|
|
||||||
public override string ToString() => this.GetDisplayTitle();
|
public override string ToString() => this.GetDisplayTitle();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user