Fix legacy scores with no online ID being imported with a non-null ID

This commit is contained in:
Dean Herbert 2019-07-29 18:36:07 +09:00
parent f04f10e59a
commit ac01e9fbeb

View File

@ -80,6 +80,9 @@ namespace osu.Game.Scoring.Legacy
else if (version >= 20121008)
scoreInfo.OnlineScoreID = sr.ReadInt32();
if (scoreInfo.OnlineScoreID <= 0)
scoreInfo.OnlineScoreID = null;
if (compressedReplay?.Length > 0)
{
using (var replayInStream = new MemoryStream(compressedReplay))