diff --git a/api/savedata/get.go b/api/savedata/get.go index 3a1cecb..dcf8232 100644 --- a/api/savedata/get.go +++ b/api/savedata/get.go @@ -44,7 +44,7 @@ func Get(uuid []byte, datatype, slot int) (any, error) { return nil, fmt.Errorf("failed to fetch compensations: %s", err) } - needsUpdate := false + var needsUpdate bool for compensationType, amount := range compensations { system.VoucherCounts[strconv.Itoa(compensationType)] += amount if amount > 0 {