This commit is contained in:
jed
2013-02-06 11:26:55 -08:00
parent 1a4e0d6868
commit 4b2672e115

View File

@@ -185,11 +185,11 @@ void OrderBookDB::processTxn(const SerializedTransaction& stTxn, TER terResult,T
const STObject* previous = dynamic_cast<const STObject*>(node.peekAtPField(*field)); const STObject* previous = dynamic_cast<const STObject*>(node.peekAtPField(*field));
if(previous) if(previous)
{ {
STAmount& takerGets = previous->getFieldAmount(sfTakerGets); STAmount takerGets = previous->getFieldAmount(sfTakerGets);
uint160 currencyOut=takerGets.getCurrency(); uint160 currencyOut=takerGets.getCurrency();
uint160 issuerOut=takerGets.getIssuer(); uint160 issuerOut=takerGets.getIssuer();
STAmount& takerPays = previous->getFieldAmount(sfTakerPays); STAmount takerPays = previous->getFieldAmount(sfTakerPays);
uint160 currencyIn=takerPays.getCurrency(); uint160 currencyIn=takerPays.getCurrency();
uint160 issuerIn=takerPays.getIssuer(); uint160 issuerIn=takerPays.getIssuer();