RippleCalc: Stop using reference that might have been invalidated.

This commit is contained in:
Tom Swirly
2014-05-20 11:20:07 -04:00
committed by Vinnie Falco
parent 044f390fe0
commit 74eb25f9b5

View File

@@ -270,7 +270,7 @@ TER PathState::pushNode (
if (bBckAccount)
{
SLE::pointer sleRippleState = lesEntries.entryCache (ltRIPPLE_STATE, Ledger::getRippleStateIndex (pnBck.uAccountID, node.uAccountID, previousNode.uCurrencyID));
SLE::pointer sleRippleState = lesEntries.entryCache (ltRIPPLE_STATE, Ledger::getRippleStateIndex (pnBck.uAccountID, node.uAccountID, pnBck.uCurrencyID));
if (!sleRippleState)
{