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.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go
index 278524fa..12eb3d16 100644
--- a/go/game/permanent.go
+++ b/go/game/permanent.go
@@ -76,6 +76,7 @@ func newPermanentBase(card *Card, tile *Tile, owner *Player) permanentBase {
tile: tile,
controller: owner,
owner: owner,
+ marks: make(map[PermanentMark]int),
}
}
@@ -202,11 +203,7 @@ func (p *permanentBase) Marks(mark PermanentMark) int {
}
func (p *permanentBase) adjustMarks(mark PermanentMark, amount int) {
- if amount, found := p.marks[mark]; found {
- p.marks[mark] += amount
- } else {
- p.marks[mark] = amount
- }
+ p.marks[mark] += amount
}
func (p *permanentBase) CurrentlyAvailActions() []Action { return nil }