aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/permanent.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go
index dfa275a6..99d70831 100644
--- a/go/game/permanent.go
+++ b/go/game/permanent.go
@@ -89,9 +89,9 @@ func FmtPermanent(p Permanent) string {
return fmt.Sprintf("%s%v", typeIndicator, p.Tile().Position)
}
- for i, p := range containing.Pile() {
- if p == p {
- return fmt.Sprintf("%s%v[%d]", typeIndicator, p.Tile().Position, i+1)
+ for i, piled := range containing.Pile() {
+ if piled == p {
+ return fmt.Sprintf("%s%v[%d]", typeIndicator, containing.Tile().Position, i+1)
}
}