Skip to content

Commit e352eee

Browse files
author
brine
committed
fixes #1286
1 parent fea73a3 commit e352eee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

octgnFX/Octgn/Play/Player.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ internal void Delete()
559559
all.Remove(this);
560560
spectators.Remove(this);
561561
}
562+
if (Program.GameEngine.TurnPlayer == this)
563+
{
564+
Program.GameEngine.TurnPlayer = null;
565+
}
562566
this.OnPropertyChanged("Ready");
563567
foreach (var p in all)
564568
p.OnPropertyChanged("WaitingOnPlayers");

recentchanges.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
Players leaving the game when its their turn will reset the active player to null (initial)

0 commit comments

Comments
 (0)