Explicitly reset online ID and beatmap status on copy

This commit is contained in:
Bartłomiej Dach
2022-02-14 19:54:40 +01:00
parent 7e75fa7117
commit 40cfee3421

View File

@ -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.