1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 03:02:56 +08:00

condition fix

This commit is contained in:
cdwcgt 2023-04-03 20:24:38 +09:00
parent 735b48679e
commit 9dd30e4b4c
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -210,9 +210,9 @@ namespace osu.Game.Overlays.BeatmapSet
{
guestMapperContainer.Clear();
if (beatmapInfo != null && beatmapInfo.AuthorID != beatmapSet?.AuthorID)
if (beatmapInfo?.AuthorID != beatmapSet?.AuthorID)
{
APIUser? user = BeatmapSet?.RelatedUsers?.Single(u => u.OnlineID == beatmapInfo.AuthorID);
APIUser? user = BeatmapSet?.RelatedUsers?.SingleOrDefault(u => u.OnlineID == beatmapInfo?.AuthorID);
if (user != null)
getGuestMapper(user);
}