mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-06 00:45:35 +00:00
Fixed warnings when compiling with -Wshadow.
This commit is contained in:
@@ -752,9 +752,9 @@ bool rcBuildContours(rcContext* ctx, rcCompactHeightfield& chf,
|
||||
if (borderSize > 0)
|
||||
{
|
||||
// If the heightfield was build with bordersize, remove the offset.
|
||||
for (int i = 0; i < cont->nverts; ++i)
|
||||
for (int j = 0; j < cont->nverts; ++j)
|
||||
{
|
||||
int* v = &cont->verts[i*4];
|
||||
int* v = &cont->verts[j*4];
|
||||
v[0] -= borderSize;
|
||||
v[2] -= borderSize;
|
||||
}
|
||||
@@ -771,9 +771,9 @@ bool rcBuildContours(rcContext* ctx, rcCompactHeightfield& chf,
|
||||
if (borderSize > 0)
|
||||
{
|
||||
// If the heightfield was build with bordersize, remove the offset.
|
||||
for (int i = 0; i < cont->nrverts; ++i)
|
||||
for (int j = 0; j < cont->nrverts; ++j)
|
||||
{
|
||||
int* v = &cont->rverts[i*4];
|
||||
int* v = &cont->rverts[j*4];
|
||||
v[0] -= borderSize;
|
||||
v[2] -= borderSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user