Fix stupid vector size bug

This commit is contained in:
Patrick Niklaus
2017-07-28 14:00:14 +00:00
committed by Patrick Niklaus
parent 97952a9289
commit 20e4096c4b
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ avoidFlagsToNodeFilter(const MultiLevelEdgeBasedGraph &graph,
{
if (mask != extractor::INAVLID_CLASS_DATA)
{
std::vector<bool> allowed_nodes(true, graph.GetNumberOfNodes());
std::vector<bool> allowed_nodes(graph.GetNumberOfNodes(), true);
for (const auto node : util::irange<NodeID>(0, graph.GetNumberOfNodes()))
{
allowed_nodes[node] = (node_data.GetClassData(node) & mask) == 0;