mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +00: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)]
|
[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; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user