Use OnlineID instead of legacy IDs for equality and lookups

This commit is contained in:
Dean Herbert
2021-12-10 15:28:41 +09:00
parent 261847bbec
commit bf1418bafc
14 changed files with 22 additions and 21 deletions

View File

@ -487,8 +487,8 @@ namespace osu.Game
// to ensure all the required data for presenting a replay are present.
ScoreInfo databasedScoreInfo = null;
if (score.OnlineScoreID != null)
databasedScoreInfo = ScoreManager.Query(s => s.OnlineScoreID == score.OnlineScoreID);
if (score.OnlineID > 0)
databasedScoreInfo = ScoreManager.Query(s => s.OnlineID == score.OnlineID);
databasedScoreInfo ??= ScoreManager.Query(s => s.Hash == score.Hash);