mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Work around weird null inspection
This commit is contained in:
@ -147,7 +147,7 @@ namespace osu.Game.Database
|
||||
var oldItem = oldItems.ElementAt(i);
|
||||
var newItem = newItems.ElementAt(i);
|
||||
|
||||
long? nullableOnlineID = oldItem.OnlineID;
|
||||
long? nullableOnlineID = oldItem?.OnlineID;
|
||||
newItem.OnlineID = (int)(nullableOnlineID ?? -1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user