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
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public void Encode(Stream stream)
{
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);