diff --git a/src/cpp/ripple/OrderBook.cpp b/src/cpp/ripple/OrderBook.cpp index 2cf716257e..d140c8ce7d 100644 --- a/src/cpp/ripple/OrderBook.cpp +++ b/src/cpp/ripple/OrderBook.cpp @@ -13,11 +13,11 @@ OrderBook::OrderBook(SerializedLedgerEntry::pointer ledgerEntry) const STAmount saTakerGets = ledgerEntry->getFieldAmount(sfTakerGets); const STAmount saTakerPays = ledgerEntry->getFieldAmount(sfTakerPays); - mCurrencyIn = saTakerGets.getCurrency(); - mCurrencyOut = saTakerPays.getCurrency(); - mIssuerIn = saTakerGets.getIssuer(); - mIssuerOut = saTakerPays.getIssuer(); + mCurrencyIn = saTakerPays.getCurrency(); + mCurrencyOut = saTakerGets.getCurrency(); + mIssuerIn = saTakerPays.getIssuer(); + mIssuerOut = saTakerGets.getIssuer(); - mBookBase=Ledger::getBookBase(mCurrencyOut,mIssuerOut,mCurrencyIn,mIssuerIn); + mBookBase=Ledger::getBookBase(mCurrencyIn, mIssuerIn, mCurrencyOut, mIssuerOut); } // vim:ts=4