diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 21:05:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 21:05:52 -0600 |
| commit | d91e80a9eabf79cc376c725aaf3a877856faa6b9 (patch) | |
| tree | da31050456b7c6f53de8e8a5748f94ee85343605 /reflect.go | |
| parent | 38595e75f2f35ecce9cc6a8d887f393d34975957 (diff) | |
works with new toolkit and gui changesv1.1.4
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'reflect.go')
| -rw-r--r-- | reflect.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -106,7 +106,10 @@ func GetInt(A any) int { return A.(int) case reflect.String: tmp := A.(string) - i, _ := strconv.Atoi(tmp) + i, err := strconv.Atoi(tmp) + if err != nil { + return -1 + } return i case reflect.Bool: if A.(bool) { |
