From da31a3be2a5ac5d7d9a9d1265065226aea1e85cd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 26 Dec 2024 19:14:22 +0100 Subject: fix character range loop in cost parsing --- go/game/costs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/game/costs.go b/go/game/costs.go index 9fc40fcb..6bdb98f2 100644 --- a/go/game/costs.go +++ b/go/game/costs.go @@ -18,7 +18,7 @@ func (c *ResourceCosts) IsVariadic() bool { func ParseResourceCosts(costsStr string) *ResourceCosts { costs := ResourceCosts{} - for c := range costsStr { + for _, c := range costsStr { if c == 'X' { costs.variadicComponents += 1 } -- cgit v1.2.3