diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 560c5be24..fdff485d6 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -5914,12 +5914,14 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vectorget_transfer_details(i).amount(); total_sent -= ptx_vector[n].change_dts.amount + ptx_vector[n].fee; + change += ptx_vector[n].change_dts.amount; if (ptx_vector[n].dust_added_to_fee) dust_in_fee += ptx_vector[n].dust; @@ -5957,7 +5959,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vectorprint_ring_members()) {