Skip to content

Commit

Permalink
Fix tournament user stat population potentially using wrong ruleset
Browse files Browse the repository at this point in the history
`OsuGameBase.Ruleset` is bound
[late](https://github.com/ppy/osu/blob/7d0470794bcd454d3a93954ec4fe3415933627ef/osu.Game.Tournament/TournamentGameBase.cs#L169)
so we must use the ladder one during user retrieval.

Closes #18363.
  • Loading branch information
peppy committed May 23, 2022
1 parent 7d04707 commit afbb1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Tournament/TournamentGameBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private bool addSeedingBeatmaps()

public void PopulateUser(APIUser user, Action success = null, Action failure = null, bool immediate = false)
{
var req = new GetUserRequest(user.Id, Ruleset.Value);
var req = new GetUserRequest(user.Id, ladder.Ruleset.Value);

if (immediate)
{
Expand Down

0 comments on commit afbb1fa

Please sign in to comment.