Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions octgnFX/Octgn.JodsEngine/Controls/PreGameLobby.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,12 @@ internal void Start(bool callStartGame = true)
// At start the global items belong to the player with the lowest id
if (Player.GlobalPlayer != null)
{
Player host = Player.AllExceptGlobal.OrderBy(p => p.Id).First();
foreach (Octgn.Play.Group group in Player.GlobalPlayer.Groups)
group.Controller = host;
if (Player.AllExceptGlobal.Any())
{
Player host = Player.AllExceptGlobal.OrderBy(p => p.Id).First();
foreach (Octgn.Play.Group group in Player.GlobalPlayer.Groups)
group.Controller = host;
}
}
if (callStartGame)
{
Expand Down