1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +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);
if (setInfo != null)
{
initialBeatmap = beatmaps.GetWorkingBeatmap(setInfo.Beatmaps[0]);
}
if (setInfo == null)
return false;
return UsingThemedIntro;
return (initialBeatmap = beatmaps.GetWorkingBeatmap(setInfo.Beatmaps[0])) != null;
}
}