mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 01:47:33 +08:00
Construct replay after being sure a ruleset is available to avoid nullrefs
This commit is contained in:
parent
6169349f7c
commit
25ab3a5fea
@ -160,8 +160,6 @@ namespace osu.Game.Screens.Play
|
|||||||
if (userId != targetUser.Id)
|
if (userId != targetUser.Id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
replay ??= new Replay { HasReceivedAllFrames = false };
|
|
||||||
|
|
||||||
this.state = state;
|
this.state = state;
|
||||||
|
|
||||||
Schedule(attemptStart);
|
Schedule(attemptStart);
|
||||||
@ -197,6 +195,8 @@ namespace osu.Game.Screens.Play
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
replay ??= new Replay { HasReceivedAllFrames = false };
|
||||||
|
|
||||||
var scoreInfo = new ScoreInfo
|
var scoreInfo = new ScoreInfo
|
||||||
{
|
{
|
||||||
Beatmap = resolvedBeatmap,
|
Beatmap = resolvedBeatmap,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user