mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
Explicitly reset online ID and beatmap status on copy
This commit is contained in:
parent
7e75fa7117
commit
40cfee3421
@ -136,8 +136,11 @@ namespace osu.Game.Beatmaps
|
||||
newBeatmapInfo.ID = Guid.NewGuid();
|
||||
// clear difficulty name to avoid clashes on save.
|
||||
newBeatmapInfo.DifficultyName = string.Empty;
|
||||
// also clear the hash, as that's what is used to match .osu files with their corresponding realm beatmaps.
|
||||
// clear the hash, as that's what is used to match .osu files with their corresponding realm beatmaps.
|
||||
newBeatmapInfo.Hash = string.Empty;
|
||||
// clear online properties.
|
||||
newBeatmapInfo.OnlineID = -1;
|
||||
newBeatmapInfo.Status = BeatmapOnlineStatus.None;
|
||||
}
|
||||
|
||||
// populate circular beatmap set info <-> beatmap info references manually.
|
||||
|
Loading…
Reference in New Issue
Block a user