Fix voucher compensation logic
This commit is contained in:
1 parent
992864b785
commit
2547ca173a
1 file changed
+2
-2
+2
-2
@@ -94,6 +94,8 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to write save file: %s", err)
|
||||
}
|
||||
|
||||
db.DeleteClaimedAccountCompensations(uuid)
|
||||
case defs.SessionSaveData: // Session
|
||||
if slot < 0 || slot >= sessionSlotCount {
|
||||
return fmt.Errorf("slot id %d out of range", slot)
|
||||
@@ -126,8 +128,6 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to write save file: %s", err)
|
||||
}
|
||||
|
||||
db.DeleteClaimedAccountCompensations(uuid)
|
||||
default:
|
||||
return fmt.Errorf("invalid data type")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user