1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Fix tournament user stat population potentially using wrong ruleset

`OsuGameBase.Ruleset` is bound
[late](7d0470794b/osu.Game.Tournament/TournamentGameBase.cs (L169))
so we must use the ladder one during user retrieval.

Closes https://github.com/ppy/osu/issues/18363.
This commit is contained in:
Dean Herbert 2022-05-23 14:06:00 +09:00
parent 7d0470794b
commit afbb1fa750

View File

@ -259,7 +259,7 @@ namespace osu.Game.Tournament
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)
{