1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

ALlow null host

This commit is contained in:
Dean Herbert 2019-01-25 12:08:31 +09:00
parent bda5a90252
commit c3b73d2d53

View File

@ -257,7 +257,7 @@ namespace osu.Game.Beatmaps
if (beatmapInfo.Metadata == null)
beatmapInfo.Metadata = beatmapInfo.BeatmapSet.Metadata;
WorkingBeatmap working = new BeatmapManagerWorkingBeatmap(Files.Store, new LargeTextureStore(host.CreateTextureLoaderStore(Files.Store)), beatmapInfo, audioManager);
WorkingBeatmap working = new BeatmapManagerWorkingBeatmap(Files.Store, new LargeTextureStore(host?.CreateTextureLoaderStore(Files.Store)), beatmapInfo, audioManager);
previous?.TransferTo(working);