mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Merge pull request #20031 from peppy/fix-replay-file-missing-crash
Fix crash when attempting to watch a replay when the storage file doesn't exist
This commit is contained in:
commit
cb4fd08f27
@ -25,7 +25,12 @@ namespace osu.Game.Scoring
|
||||
return;
|
||||
|
||||
using (var stream = store.GetStream(replayFilename))
|
||||
{
|
||||
if (stream == null)
|
||||
return;
|
||||
|
||||
Replay = new DatabasedLegacyScoreDecoder(rulesets, beatmaps).Parse(stream).Replay;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user