Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwcgt committed Jan 19, 2025
1 parent 74b1e8b commit 0385302
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void updateState()

banChoices = banChoices.Concat(Enumerable.Repeat((BeatmapChoice?)null, (ladderInfo.CurrentMatch.Value.Round.Value?.BanCount.Value ?? 2) * 2 - banChoices.Length)).ToArray();

int pickMapCount = ladderInfo.CurrentMatch.Value.Round.Value.BestOf.Value - 1 // 去掉TB
int pickMapCount = ladderInfo.CurrentMatch.Value.Round.Value.BestOf.Value - 1; // 去掉TB

Check failure on line 216 in osu.Game.Tournament/Screens/Gameplay/Components/RoundInformationPreview.cs

View workflow job for this annotation

GitHub Actions / Test (Linux, ubuntu-latest, SingleThread)

Dereference of a possibly null reference.

var pickChoice = pickChoices.Take(pickMapCount)
// 往后面填充null
Expand Down

0 comments on commit 0385302

Please sign in to comment.