From e24d4d70524329a51a6193cb79fe8841712b6103 Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 8 Jul 2018 12:43:04 +0300 Subject: [PATCH] Explicitly use RC_NULL_AREA constant to mark unwalkable areas --- components/detournavigator/makenavmesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/detournavigator/makenavmesh.cpp b/components/detournavigator/makenavmesh.cpp index f671344962..c3c12d675c 100644 --- a/components/detournavigator/makenavmesh.cpp +++ b/components/detournavigator/makenavmesh.cpp @@ -99,7 +99,7 @@ namespace { const auto& chunkyMesh = recastMesh.getChunkyTriMesh(); - std::vector areas(chunkyMesh.getMaxTrisPerChunk(), 0); + std::vector areas(chunkyMesh.getMaxTrisPerChunk(), RC_NULL_AREA); const osg::Vec2f tileBoundsMin(config.bmin[0], config.bmin[2]); const osg::Vec2f tileBoundsMax(config.bmax[0], config.bmax[2]); std::vector cids; @@ -116,7 +116,7 @@ namespace areas.begin(), std::min(areas.begin() + static_cast(chunk.mSize), areas.end()), - 0 + RC_NULL_AREA ); rcMarkWalkableTriangles(