mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08: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);
|
var trackData = getReader()?.GetStream(Metadata.AudioFile);
|
||||||
return trackData == null ? null : new TrackBass(trackData);
|
return trackData == null ? null : new TrackBass(trackData);
|
||||||
}
|
}
|
||||||
catch { return null; }
|
catch { return new TrackVirtual(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user