1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Fix beatmaps with no preview point set getting incorrect default

Note that this will require a re-import to fix existing beatmaps
becuse.. it's stored to realm. Probably not worth worrying about for
now.
This commit is contained in:
Dean Herbert 2023-10-10 19:02:04 +09:00
parent 7220ca34f7
commit 2781846147
No known key found for this signature in database

View File

@ -196,7 +196,8 @@ namespace osu.Game.Beatmaps.Formats
break;
case @"PreviewTime":
metadata.PreviewTime = getOffsetTime(Parsing.ParseInt(pair.Value));
int time = Parsing.ParseInt(pair.Value);
metadata.PreviewTime = time == -1 ? time : getOffsetTime(time);
break;
case @"SampleSet":