forked from mirror/DotRecast
recast4j - c3ffe19 - [Upstream] Fix for out of bounds read in tile cache builder
This commit is contained in:
parent
061f8dad69
commit
865fd13b24
|
@ -1492,7 +1492,7 @@ namespace DotRecast.Detour.TileCache
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove vertex.
|
// Remove vertex.
|
||||||
for (int i = rem; i < mesh.nverts; ++i)
|
for (int i = rem; i < mesh.nverts - 1; ++i)
|
||||||
{
|
{
|
||||||
mesh.verts[i * 3 + 0] = mesh.verts[(i + 1) * 3 + 0];
|
mesh.verts[i * 3 + 0] = mesh.verts[(i + 1) * 3 + 0];
|
||||||
mesh.verts[i * 3 + 1] = mesh.verts[(i + 1) * 3 + 1];
|
mesh.verts[i * 3 + 1] = mesh.verts[(i + 1) * 3 + 1];
|
||||||
|
|
Loading…
Reference in New Issue