1
0
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:
Bartłomiej Dach 2022-02-14 19:54:40 +01:00
parent 7e75fa7117
commit 40cfee3421
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

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.