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:
parent
7220ca34f7
commit
2781846147
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user