mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Fix reversed checks
This commit is contained in:
@ -169,7 +169,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
throw new InvalidOperationException($"State {state} cannot be set by a leaderboard implementation.");
|
throw new InvalidOperationException($"State {state} cannot be set by a leaderboard implementation.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug.Assert(scores.Any());
|
Debug.Assert(!scores.Any());
|
||||||
|
|
||||||
setState(state);
|
setState(state);
|
||||||
}
|
}
|
||||||
@ -258,7 +258,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
.Expire();
|
.Expire();
|
||||||
scoreFlowContainer = null;
|
scoreFlowContainer = null;
|
||||||
|
|
||||||
if (scores.Any())
|
if (!scores.Any())
|
||||||
{
|
{
|
||||||
setState(LeaderboardState.NoScores);
|
setState(LeaderboardState.NoScores);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user