From d9c6fc58ce1169c74a9d24713f7b5929b93aa526 Mon Sep 17 00:00:00 2001 From: Ben Hymers Date: Mon, 14 Mar 2016 08:55:08 +0000 Subject: [PATCH] Remove redundant double assignment --- Recast/Source/RecastMeshDetail.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Recast/Source/RecastMeshDetail.cpp b/Recast/Source/RecastMeshDetail.cpp index e293819..f953132 100644 --- a/Recast/Source/RecastMeshDetail.cpp +++ b/Recast/Source/RecastMeshDetail.cpp @@ -647,11 +647,10 @@ static bool buildPolyDetail(rcContext* ctx, const float* in, const int nin, int hull[MAX_VERTS]; int nhull = 0; - nverts = 0; + nverts = nin; for (int i = 0; i < nin; ++i) rcVcopy(&verts[i*3], &in[i*3]); - nverts = nin; edges.resize(0); tris.resize(0);