mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +00:00
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:
commit
31c8c0f75a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user