diff options
Diffstat (limited to 'logic/score.go')
| -rw-r--r-- | logic/score.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/score.go b/logic/score.go index af6eefc..d65bb7c 100644 --- a/logic/score.go +++ b/logic/score.go @@ -129,8 +129,8 @@ func (s_ *Score) Cancel(pos int) error { if pos < 0 || pos > 12 { return errors.New("Index out of range") } - if s[pos] == 0 { - s[pos] = -1 + if s[pos] == -1 { + s[pos] = 0 return nil } return errors.New("Already recorded") |
