1
0
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:
Dean Herbert 2019-11-06 14:47:31 +09:00
parent 52dba69a64
commit 5e416bd18d

View File

@ -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);