diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-26 19:14:22 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:12 +0200 |
| commit | a5422afa267c368815b7916ae3ec717aacb05108 (patch) | |
| tree | 040df08af3d1a4ec9c5acaeed79c92ca09d630dc /go/game | |
| parent | 70df0689c5d96d8bc66dd3f30a22fd804998b84c (diff) | |
| download | muhqs-game-a5422afa267c368815b7916ae3ec717aacb05108.tar.gz muhqs-game-a5422afa267c368815b7916ae3ec717aacb05108.zip | |
fix character range loop in cost parsing
Diffstat (limited to 'go/game')
| -rw-r--r-- | go/game/costs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
