diff options
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index d2a7eedf5..2ffaea834 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -320,7 +320,8 @@ namespace cryptonote }); tools::apply_permutation(outs_order, [&] (size_t i0, size_t i1) { std::swap(tx.vout[i0], tx.vout[i1]); - std::swap(amount_keys[i0], amount_keys[i1]); + if (!amount_keys.empty()) + std::swap(amount_keys[i0], amount_keys[i1]); }); //check money |