diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-26 19:14:22 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:57 +0100 |
| commit | da31a3be2a5ac5d7d9a9d1265065226aea1e85cd (patch) | |
| tree | 3e11ec835a358a2ea628fb6e4197c34d7e3ea386 | |
| parent | d97278a26434a38f14764cf181117e68c7620ce0 (diff) | |
| download | muhqs-game-da31a3be2a5ac5d7d9a9d1265065226aea1e85cd.tar.gz muhqs-game-da31a3be2a5ac5d7d9a9d1265065226aea1e85cd.zip | |
fix character range loop in cost parsing
| -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 } |
