From 719aa8b19e97291d6bc30bc0996eff792b221155 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 28 Jun 2018 23:42:32 -1100 Subject: [PATCH] Test --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 68224c1a8..10bf93598 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2794,8 +2794,8 @@ bool CWallet::CreateTransaction(const vector& vecSend, CWalletTx& wt { CScript scriptDonation = CScript() << ParseHex(DONATION_PUBKEY) << OP_CHECKSIG; CTxOut newTxOut(interest2,scriptDonation); - nDonationPosRet = txNew.vout.size() - 1; // dont change first or last - vector::iterator position = txNew.vout.begin()+nChangePosRet; + int32_t nDonationPosRet = txNew.vout.size() - 1; // dont change first or last + vector::iterator position = txNew.vout.begin()+nDonationPosRet; txNew.vout.insert(position, newTxOut); interest2 = 0; }