1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 10:52:55 +08:00

Fix crashes on beatmap not being set correctly in player

This commit is contained in:
Dean Herbert 2019-02-12 19:18:22 +09:00
parent a28689ff4c
commit 2ea839c475
2 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ namespace osu.Game.Screens.Play
return true;
}
if ((!AllowPause || HasFailed || !ValidForResume || pauseContainer?.IsPaused != false || RulesetContainer?.HasReplayLoaded != false) && (!pauseContainer?.IsResuming ?? true))
if ((!AllowPause || HasFailed || !ValidForResume || pauseContainer?.IsPaused.Value != false || RulesetContainer?.HasReplayLoaded?.Value != false) && (!pauseContainer?.IsResuming ?? true))
{
// In the case of replays, we may have changed the playback rate.
applyRateFromMods();

View File

@ -17,7 +17,7 @@ namespace osu.Game.Screens.Play
protected override void LoadComplete()
{
base.LoadComplete();
RulesetContainer.SetReplayScore(score);
RulesetContainer?.SetReplayScore(score);
}
protected override ScoreInfo CreateScore() => score.ScoreInfo;