aboutsummaryrefslogtreecommitdiff
path: root/go/game/player.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/player.go')
-rw-r--r--go/game/player.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/player.go b/go/game/player.go
index ef88cd81..f7f5be7c 100644
--- a/go/game/player.go
+++ b/go/game/player.go
@@ -151,6 +151,9 @@ func (p *Player) actionPhase() {
if _, ok := a.(*PassPriority); ok {
return
}
+ if a == nil {
+ log.Fatal("Received nil action from ", p.Name)
+ }
p.gameState.declareAction(a)
p.gameState.stack.resolve()
}