summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/value.cc b/value.cc
index 6038ca9e..1ec5b219 100644
--- a/value.cc
+++ b/value.cc
@@ -733,11 +733,10 @@ value_t value_t::price() const
return *this;
case BALANCE_PAIR:
- assert(((balance_pair_t *) data)->price);
if (((balance_pair_t *) data)->price)
return *(((balance_pair_t *) data)->price);
else
- return ((balance_pair_t *) data)->quantity;
+ return 0L;
default:
assert(0);