mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 08:52:55 +08:00
Fix inspection
Interestingly, this is not a compiler error nor does R# warn about it. No problem, because this is just restoring the original code anyway.
This commit is contained in:
parent
748c2eb390
commit
e51c09ec3d
@ -222,7 +222,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
|
||||
int userRulesetId = User.RulesetId ?? currentItem.RulesetID;
|
||||
Ruleset? userRuleset = rulesets.GetRuleset(userRulesetId)?.CreateInstance();
|
||||
|
||||
int? currentModeRank = User.User?.RulesetsStatistics?.GetValueOrDefault(userRuleset?.ShortName)?.GlobalRank;
|
||||
int? currentModeRank = userRuleset == null ? null : User.User?.RulesetsStatistics?.GetValueOrDefault(userRuleset.ShortName)?.GlobalRank;
|
||||
userRankText.Text = currentModeRank != null ? $"#{currentModeRank.Value:N0}" : string.Empty;
|
||||
|
||||
if (userBeatmapId == currentItem.BeatmapID && userRulesetId == currentItem.RulesetID)
|
||||
|
Loading…
Reference in New Issue
Block a user