mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
🐎 bal must be non-zero to impact return account
This commit is contained in:
parent
ce9b431cfe
commit
86ab683704
1 changed files with 4 additions and 1 deletions
|
|
@ -210,7 +210,10 @@ BankResponse Bank::PruneUsers(time_t threshold_time, uint32_t threshold_bal) noe
|
|||
}))
|
||||
{
|
||||
#if RETURN_ON_DEL
|
||||
users.modify_if(return_account, [bal](User &u) { u.balance += bal; });
|
||||
if(bal)
|
||||
{
|
||||
users.modify_if(return_account, [bal](User &u) { u.balance += bal; });
|
||||
}
|
||||
#endif
|
||||
|
||||
SET_CHANGES_ON;
|
||||
|
|
|
|||
Loading…
Reference in a new issue