OSDN Git Service

Fix broken moved blocks detection feature
authorsdottaka <none@none>
Tue, 12 Feb 2013 03:10:22 +0000 (19:10 -0800)
committersdottaka <none@none>
Tue, 12 Feb 2013 03:10:22 +0000 (19:10 -0800)
Src/MovedBlocks.cpp

index 13dc8e0..86ce8a4 100644 (file)
@@ -33,7 +33,7 @@ public:
        void Remove(int val) { m_map.erase(val); }
        size_t count() const { return m_map.size(); }
        bool isPresent(int val) const { m_map.find(val) != m_map.end(); }
-       int getSingle() const { return m_map.begin()->second; }
+       int getSingle() const { return m_map.begin()->first; }
 private:
        std::map<int, int> m_map;
 };