Add comment

This commit is contained in:
naoey 2019-06-29 16:10:16 +05:30
parent 6c81d57178
commit 04c467fd81
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60

View File

@ -261,6 +261,8 @@ namespace osu.Game
/// </summary>
public void PresentScore(ScoreInfo score)
{
// The given ScoreInfo may have missing properties if it was retrieved from online data. Re-retrieve it from the database
// to ensure all the required data for presenting a replay are present.
var databasedScoreInfo = ScoreManager.Query(s => s.OnlineScoreID == score.OnlineScoreID);
var databasedScore = ScoreManager.GetScore(databasedScoreInfo);