Needed to port skanthak's last commit to the master branch's code base.
This commit is contained in:
parent
c172281858
commit
a1717b6dd5
1 changed files with 7 additions and 2 deletions
|
|
@ -44,11 +44,16 @@ static bool search_for_balance(amount_t& amount,
|
|||
*prev = next;
|
||||
|
||||
amount -= next->amount;
|
||||
|
||||
if (! amount) {
|
||||
transaction_xdata(*next).ptr = NULL;
|
||||
*xact_next_ptr(next) = NULL;
|
||||
return true;
|
||||
} else if (search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
|
||||
}
|
||||
else if (search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
amount += next->amount;
|
||||
|
||||
*prev = temp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue