mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Have beatmap return a zero-length TrackVirtual instead of null on load failure
This commit is contained in:
parent
311c2aec1c
commit
1bd3519ecb
@ -69,7 +69,7 @@ namespace osu.Game.Database
|
||||
var trackData = getReader()?.GetStream(Metadata.AudioFile);
|
||||
return trackData == null ? null : new TrackBass(trackData);
|
||||
}
|
||||
catch { return null; }
|
||||
catch { return new TrackVirtual(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user