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:
parent
c37840b37c
commit
82cf58353c
@ -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));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user