Fix legacy scores with no online ID being imported with a non-n… (#5508)

Fix legacy scores with no online ID being imported with a non-null ID
This commit is contained in:
Dean Herbert 2019-07-29 19:21:00 +09:00 committed by GitHub
commit 31c8c0f75a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))