1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 07:27:25 +08:00

Have beatmap return a zero-length TrackVirtual instead of null on load failure

This commit is contained in:
Dean Herbert 2017-07-11 18:38:27 +09:00
parent 311c2aec1c
commit 1bd3519ecb

View File

@ -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(); }
}
}
}
}