mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 04:57:46 +08:00
Work around weird null inspection
This commit is contained in:
parent
2c5ba1d8e2
commit
88a575462c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user