diff --git a/src/cpp/ripple/Ledger.cpp b/src/cpp/ripple/Ledger.cpp index e3d407f8c..73fc51eb9 100644 --- a/src/cpp/ripple/Ledger.cpp +++ b/src/cpp/ripple/Ledger.cpp @@ -1339,7 +1339,7 @@ bool Ledger::isValidBook(const uint160& uTakerPaysCurrency, const uint160& uTake } else // non-XRP to non-XRP { - if ((uTakerPaysCurrency == uTakerGetsCurrency) && (uTakerGetsIssuerID == uTakerGetsIssuerID)) + if ((uTakerPaysCurrency == uTakerGetsCurrency) && (uTakerGetsIssuerID == uTakerPaysIssuerID)) return false; // Input and output cannot be identical }