Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Make Game#Host nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Dec 16, 2020
1 parent d9c9dcd commit 5301c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Impostor.Server/Net/State/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Game(

public int PlayerCount => _players.Count;

public ClientPlayer Host => _players[HostId];
public ClientPlayer? Host => _players.GetValueOrDefault(HostId);

public IEnumerable<IClientPlayer> Players => _players.Select(p => p.Value);

Expand Down

0 comments on commit 5301c9f

Please sign in to comment.