summaryrefslogtreecommitdiff
path: root/balance.h
diff options
context:
space:
mode:
Diffstat (limited to 'balance.h')
-rw-r--r--balance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/balance.h b/balance.h
index 71929f13..c115ba45 100644
--- a/balance.h
+++ b/balance.h
@@ -101,7 +101,7 @@ class balance_t
if (i != amounts.end()) {
(*i).second -= amt;
if ((*i).second.realzero())
- amounts.erase(&amt.commodity());
+ amounts.erase(i);
}
else if (! amt.realzero()) {
amounts.insert(amounts_pair(&amt.commodity(), - amt));