mirror of https://github.com/ppy/osu
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 @@ private void handleGeneral(string line)
|
|||
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