1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:25:05 +08:00

Fix incorrect joinedroom null checks

This commit is contained in:
smoogipoo 2020-12-21 15:38:20 +09:00
parent c37840b37c
commit 82cf58353c
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ namespace osu.Game.Screens.Multi.Components
{
currentJoinRoomRequest?.Cancel();
if (JoinedRoom == null)
if (JoinedRoom.Value == null)
return;
api.Queue(new PartRoomRequest(joinedRoom.Value));

View File

@ -45,7 +45,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
public override void PartRoom()
{
if (JoinedRoom == null)
if (JoinedRoom.Value == null)
return;
var joinedRoom = JoinedRoom.Value;