From 96ff08a255f11c0ee44cb0f04bff7a785bf6bee2 Mon Sep 17 00:00:00 2001 From: Kromster80 Date: Thu, 27 Nov 2014 22:41:28 +0300 Subject: [PATCH] Removed unnecessary assignments --- RecastDemo/Source/NavMeshTesterTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/NavMeshTesterTool.cpp index 5bb363d..1e6f5b0 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/NavMeshTesterTool.cpp @@ -1143,7 +1143,7 @@ void NavMeshTesterTool::handleRender() dd.begin(DU_DRAW_LINES, 2.0f); for (int i = 0; i < m_nstraightPath-1; ++i) { - unsigned int col = 0; + unsigned int col; if (m_straightPathFlags[i] & DT_STRAIGHTPATH_OFFMESH_CONNECTION) col = offMeshCol; else @@ -1156,7 +1156,7 @@ void NavMeshTesterTool::handleRender() dd.begin(DU_DRAW_POINTS, 6.0f); for (int i = 0; i < m_nstraightPath; ++i) { - unsigned int col = 0; + unsigned int col; if (m_straightPathFlags[i] & DT_STRAIGHTPATH_START) col = startCol; else if (m_straightPathFlags[i] & DT_STRAIGHTPATH_START)