summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/walk.cc b/walk.cc
index 0b5ec4d8..d80a0397 100644
--- a/walk.cc
+++ b/walk.cc
@@ -109,10 +109,7 @@ void truncate_entries::flush()
void set_account_value::operator()(transaction_t& xact)
{
- account_t * acct = xact_account(xact);
- assert(acct);
-
- account_xdata_t& xdata = account_xdata(*acct);
+ account_xdata_t& xdata = account_xdata(*xact.account);
add_transaction_to(xact, xdata.value);
xdata.count++;