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
1 changed files with 2 additions and 1 deletions

View File

@ -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":