Fix vector initialization

This commit is contained in:
Simon Giraudot 2017-08-30 11:12:33 +02:00
parent 5f5d27f1a8
commit 3e91d6f5d4
1 changed files with 4 additions and 5 deletions

View File

@ -228,11 +228,10 @@ public:
for (std::size_t x = 0; x < m_width; ++ x)
for (std::size_t y = 0; y < m_height; ++ y)
{
m_has_points[x * m_height + y]
= (m_lower_scale->has_points(x*2, y*2)
|| m_lower_scale->has_points(x*2, y*2 + 1)
|| m_lower_scale->has_points(x*2 + 1, y*2 + 1)
|| m_lower_scale->has_points(x*2 + 1, y*2));
m_has_points.push_back ((m_lower_scale->has_points(x*2, y*2)
|| m_lower_scale->has_points(x*2, y*2 + 1)
|| m_lower_scale->has_points(x*2 + 1, y*2 + 1)
|| m_lower_scale->has_points(x*2 + 1, y*2)));
}
// std::cerr << "Grid size = " << width() << " " << height() << std::endl;
}