mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix beatmaps importing with -1 as online set ID
This commit is contained in:
parent
6eb3e6c541
commit
5ad122bfec
@ -13,7 +13,13 @@ namespace osu.Game.Beatmaps
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user