aboutsummaryrefslogtreecommitdiff
path: root/go/game/permanent.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/permanent.go')
-rw-r--r--go/game/permanent.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go
index 47166d61..76f2325d 100644
--- a/go/game/permanent.go
+++ b/go/game/permanent.go
@@ -60,6 +60,9 @@ type permanentBase struct {
}
func newPermanentBase(card *Card, tile *Tile, owner *Player) permanentBase {
+ if card == nil || tile == nil || owner == nil {
+ log.Panicf("invalid argument for newPermanentBase(%p, %p, %p\n)", card, tile, owner)
+ }
if tile != nil && tile.Permanent != nil {
log.Panicf("Tile at %v already occupied by %v", tile.Position, tile.Permanent)
}