1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 22:22:59 +08:00

Merge pull request #11801 from peppy/fix-import-always-importing

Fix intro beatmap always being imported even if already in a good state
This commit is contained in:
Dean Herbert 2021-02-17 20:59:33 +09:00 committed by GitHub
commit 9c298fac4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,12 +111,10 @@ namespace osu.Game.Screens.Menu
{ {
setInfo = beatmaps.QueryBeatmapSet(b => b.Hash == BeatmapHash); setInfo = beatmaps.QueryBeatmapSet(b => b.Hash == BeatmapHash);
if (setInfo != null) if (setInfo == null)
{ return false;
initialBeatmap = beatmaps.GetWorkingBeatmap(setInfo.Beatmaps[0]);
}
return UsingThemedIntro; return (initialBeatmap = beatmaps.GetWorkingBeatmap(setInfo.Beatmaps[0])) != null;
} }
} }