1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Fix score serialisation failing for unknown mod properties

This commit is contained in:
Dean Herbert 2019-12-19 14:58:56 +09:00
parent c94c803562
commit b1533ae2a9

View File

@ -89,7 +89,7 @@ namespace osu.Game.Scoring
if (mods == null)
return null;
return modsJson = JsonConvert.SerializeObject(mods);
return modsJson = JsonConvert.SerializeObject(mods.Select(m => new DeserializedMod { Acronym = m.Acronym }));
}
set
{