From 74eb25f9b5758909737a4722f60134fd754a4181 Mon Sep 17 00:00:00 2001 From: Tom Swirly Date: Tue, 20 May 2014 11:20:07 -0400 Subject: [PATCH] RippleCalc: Stop using reference that might have been invalidated. --- src/ripple_app/paths/PathState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple_app/paths/PathState.cpp b/src/ripple_app/paths/PathState.cpp index efea1acf9..57676d0bf 100644 --- a/src/ripple_app/paths/PathState.cpp +++ b/src/ripple_app/paths/PathState.cpp @@ -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) {