diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index 9c42b24b2..ecedbbdef 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -492,7 +492,7 @@ void LedgerConsensus::updateOurPositions() std::map closeTimes; for (boost::unordered_map::iterator it = mPeerPositions.begin(), end = mPeerPositions.end(); it != end; ++it) - ++closeTimes[it->second->getCloseTime() - (it->second->getCloseTime % mCloseResolution)]; + ++closeTimes[it->second->getCloseTime() - (it->second->getCloseTime() % mCloseResolution)]; ++closeTimes[mOurPosition->getCloseTime() - (mOurPosition->getCloseTime() % mCloseResolution)];