Add callback to dictionary rather than overwrite

Attempting to overwrite will henceforth throw an exception.
This commit is contained in:
Bartłomiej Dach 2022-12-24 13:45:04 +01:00
parent 6c4ca387e0
commit 78c47a3695
No known key found for this signature in database

View File

@ -62,7 +62,7 @@ namespace osu.Game.Online.Solo
return; return;
} }
callbacks[score.OnlineID] = callback; callbacks.Add(score.OnlineID, callback);
}); });
private void onUserChanged(APIUser? localUser) => Schedule(() => private void onUserChanged(APIUser? localUser) => Schedule(() =>