From 63576f0709f4801897c54aa16fa7dcf560e08b39 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 2 Aug 2012 11:33:58 -0700 Subject: [PATCH] Fix the crash bug Jed reported. --- src/LedgerConsensus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index a99a54a0b1..71a808369d 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -533,7 +533,10 @@ void LedgerConsensus::updateOurPositions() } } if (closeTime != (mOurPosition->getCloseTime() - (mOurPosition->getCloseTime() % mCloseResolution))) + { + ourPosition = mComplete[mOurPosition->getCurrentHash()]->snapShot(true); changes = true; + } if (changes) {