From 312f0c27e397d3138e582818d05c21e9f999c9fe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 25 Jul 2005 20:56:55 +0000 Subject: (operator): Rearranged some code and added an assert. --- walk.cc | 5 +---- 1 file changed, 1 insertion(+), 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++; -- cgit v1.2.3