summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc5
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) {