From 03f43dee37c1e27ddb22aef6da5ee630a36a4f0e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 28 Jul 2015 14:21:41 +0300 Subject: [PATCH] more GetValue for balances --- engine/balances.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/balances.go b/engine/balances.go index 37d4b5201..6766ea55d 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -285,11 +285,11 @@ func (b *Balance) GetValue() float64 { } func (b *Balance) AddValue(amount float64) { - b.SetValue(b.Value + amount) + b.SetValue(b.GetValue() + amount) } func (b *Balance) SubstractValue(amount float64) { - b.SetValue(b.Value - amount) + b.SetValue(b.GetValue() - amount) } func (b *Balance) SetValue(amount float64) {