diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 0a59353052b..e1a4e8afc4d 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -1154,6 +1154,7 @@ static util::Result CreateTransactionInternal( result.GetSelectedValue()); // vouts to the payees + txNew.vout.reserve(vecSend.size() + 1); // + 1 because of possible later insert for (const auto& recipient : vecSend) { txNew.vout.emplace_back(recipient.nAmount, GetScriptForDestination(recipient.dest));