diff options
Diffstat (limited to 'src/post.cc')
-rw-r--r-- | src/post.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/post.cc b/src/post.cc index 42e81159..2c303a87 100644 --- a/src/post.cc +++ b/src/post.cc @@ -231,10 +231,11 @@ namespace { DEBUG("post.account_amount", "Found account: " << account->fullname()); - if (account->xdata().self_details.total.is_null()) + value_t total = account->self_total(); + if (total.is_null()) return 0L; else - return account->xdata().self_details.total.simplified(); + return total.simplified(); } value_t get_account_depth(post_t& post) { |