1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Fix incorrect ruleset being recorded to file

This commit is contained in:
Dean Herbert 2020-03-24 15:43:22 +09:00
parent 448961b330
commit 02a3c7c025

View File

@ -34,7 +34,7 @@ namespace osu.Game.Scoring.Legacy
{
using (SerializationWriter sw = new SerializationWriter(stream))
{
sw.Write((byte)score.ScoreInfo.RulesetID);
sw.Write((byte)(score.ScoreInfo.Ruleset.ID ?? 0));
sw.Write(LATEST_VERSION);
sw.Write(score.ScoreInfo.Beatmap.MD5Hash);
sw.Write(score.ScoreInfo.UserString);