summaryrefslogtreecommitdiff
path: root/balance.h
diff options
context:
space:
mode:
Diffstat (limited to 'balance.h')
-rw-r--r--balance.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/balance.h b/balance.h
index a41bcf6f..7fd3a770 100644
--- a/balance.h
+++ b/balance.h
@@ -217,6 +217,9 @@ class balance_t
if (! ((*i).second < bal.amount((*i).first)))
return false;
+ if (bal.amounts.size() == 0 && amounts.size() == 0)
+ return false;
+
return true;
}
bool operator<=(const balance_t& bal) const {
@@ -254,6 +257,9 @@ class balance_t
if (! ((*i).second > bal.amount((*i).first)))
return false;
+ if (bal.amounts.size() == 0 && amounts.size() == 0)
+ return false;
+
return true;
}
bool operator>=(const balance_t& bal) const {