mirror of
https://github.com/ppy/osu.git
synced 2025-03-20 05:47:45 +08:00
Fix tournament client crashing if beatmap added with an ID of zero
This commit is contained in:
parent
52dba69a64
commit
5e416bd18d
@ -215,7 +215,7 @@ namespace osu.Game.Tournament
|
||||
|
||||
foreach (var r in ladder.Rounds)
|
||||
foreach (var b in r.Beatmaps)
|
||||
if (b.BeatmapInfo == null)
|
||||
if (b.BeatmapInfo == null && b.ID > 0)
|
||||
{
|
||||
var req = new GetBeatmapRequest(new BeatmapInfo { OnlineBeatmapID = b.ID });
|
||||
req.Perform(API);
|
||||
|
Loading…
x
Reference in New Issue
Block a user