1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 09:04:15 +08:00

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
Unverified
parent f04f10e59a
commit ac01e9fbeb
@@ -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))