X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=1846d17c923e8350b728f40e1200a55be32fc8f1;hp=ab44a9be4d6121599e5f1dcf368a61e25d2253d9;hb=1ebe5b92ef18395cdae9b88fc38b0ed6166c3243;hpb=62b3df9c02e86432aa73f8b475900946bb348816 diff --git a/src/wallet.cpp b/src/wallet.cpp index ab44a9b..1846d17 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1688,8 +1688,8 @@ bool CWallet::CreateTransaction(const vector >& vecSend, CScript scriptChange; // coin control: send change to custom address - if (coinControl && !boost::get(&coinControl->destChange)) - scriptChange.SetDestination(coinControl->destChange); + if (coinControl && coinControl->destChange.IsValid()) + scriptChange.SetAddress(coinControl->destChange); // no coin control: send change to newly generated address else