1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 23:22:55 +08:00

Fix metrics being populated with null ratings

This commit is contained in:
smoogipoo 2019-06-13 19:14:58 +09:00
parent 2ad4045b2e
commit 389997dbc4

View File

@ -73,7 +73,7 @@ namespace osu.Game.Online.API.Requests.Responses
OnlineBeatmapSetID = OnlineBeatmapSetID,
Metadata = this,
Status = Status,
Metrics = new BeatmapSetMetrics { Ratings = ratings },
Metrics = ratings == null ? null : new BeatmapSetMetrics { Ratings = ratings },
OnlineInfo = new BeatmapSetOnlineInfo
{
Covers = covers,