diff options
author | Vincent_Michael <Vincent_Michael@gmx.de> | 2014-01-18 01:36:12 +0100 |
---|---|---|
committer | Vincent_Michael <Vincent_Michael@gmx.de> | 2014-01-18 01:36:12 +0100 |
commit | ad8c046916262918b88917cbe4194a943ce75d16 (patch) | |
tree | 1bdf4a3995b184377229a767278771f4e533b828 /dep/recastnavigation/Recast/RecastMesh.cpp | |
parent | 3276a786cc35f4dddcceedcab84fba5e77b78e58 (diff) |
Core/Revert: ...
Diffstat (limited to 'dep/recastnavigation/Recast/RecastMesh.cpp')
-rw-r--r-- | dep/recastnavigation/Recast/RecastMesh.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dep/recastnavigation/Recast/RecastMesh.cpp b/dep/recastnavigation/Recast/RecastMesh.cpp index 23a466053b1..13aad2af01c 100644 --- a/dep/recastnavigation/Recast/RecastMesh.cpp +++ b/dep/recastnavigation/Recast/RecastMesh.cpp @@ -1105,9 +1105,7 @@ bool rcBuildPolyMesh(rcContext* ctx, rcContourSet& cset, const int nvp, rcPolyMe unsigned short* pa = &polys[bestPa*nvp]; unsigned short* pb = &polys[bestPb*nvp]; mergePolys(pa, pb, bestEa, bestEb, tmpPoly, nvp); - unsigned short* lastPoly = &polys[(npolys-1)*nvp]; - if (pb != lastPoly) - memcpy(pb, lastPoly, sizeof(unsigned short)*nvp); + memcpy(pb, &polys[(npolys-1)*nvp], sizeof(unsigned short)*nvp); npolys--; } else |