mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00: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;
|
return;
|
||||||
|
|
||||||
using (var stream = store.GetStream(replayFilename))
|
using (var stream = store.GetStream(replayFilename))
|
||||||
|
{
|
||||||
|
if (stream == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Replay = new DatabasedLegacyScoreDecoder(rulesets, beatmaps).Parse(stream).Replay;
|
Replay = new DatabasedLegacyScoreDecoder(rulesets, beatmaps).Parse(stream).Replay;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user