From 35a16437cdcaf4256e88eb8c2f6920fd7f44a60d Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Thu, 30 Dec 2010 02:25:23 +0100 Subject: [PATCH] Minor bugfix in DDVector. --- coding/dd_vector.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coding/dd_vector.hpp b/coding/dd_vector.hpp index c63b34018e..0f4d3e2d8f 100644 --- a/coding/dd_vector.hpp +++ b/coding/dd_vector.hpp @@ -69,7 +69,10 @@ public: { ASSERT_LESS(m_I, m_Size, (m_bValueRead)); if (!m_bValueRead) + { ReadFromPos(*m_pReader, m_I * sizeof(T), &m_Value, sizeof(T)); + m_bValueRead = true; + } return m_Value; }