Fix beatmaps importing with -1 as online set ID

This commit is contained in:
Dean Herbert 2018-06-28 10:28:35 +09:00
parent 6eb3e6c541
commit 5ad122bfec

View File

@ -13,7 +13,13 @@ namespace osu.Game.Beatmaps
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ID { get; set; } public int ID { get; set; }
public int? OnlineBeatmapSetID { get; set; } private int? onlineBeatmapSetID;
public int? OnlineBeatmapSetID
{
get { return onlineBeatmapSetID; }
set { onlineBeatmapSetID = value > 0 ? value : null; }
}
public BeatmapMetadata Metadata { get; set; } public BeatmapMetadata Metadata { get; set; }