From dfed678d3ded7b96d66e3b8110ae1d502fd96385 Mon Sep 17 00:00:00 2001 From: Kromster80 Date: Fri, 28 Nov 2014 18:40:53 +0300 Subject: [PATCH] Fixed copy/paste bug --- RecastDemo/Source/NavMeshTesterTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/NavMeshTesterTool.cpp index 5bb363d..cf2aec2 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/NavMeshTesterTool.cpp @@ -1159,7 +1159,7 @@ void NavMeshTesterTool::handleRender() unsigned int col = 0; if (m_straightPathFlags[i] & DT_STRAIGHTPATH_START) col = startCol; - else if (m_straightPathFlags[i] & DT_STRAIGHTPATH_START) + else if (m_straightPathFlags[i] & DT_STRAIGHTPATH_END) col = endCol; else if (m_straightPathFlags[i] & DT_STRAIGHTPATH_OFFMESH_CONNECTION) col = offMeshCol;