修复由于可能存在问题的奇数长度顶点数组导致的数组越界问题

This commit is contained in:
ww-rm
2025-09-27 18:48:54 +08:00
parent b74f2811a7
commit d57ea781f0
9 changed files with 9 additions and 9 deletions

View File

@@ -338,7 +338,7 @@ namespace SpineRuntime21 {
if (vertices != null)
{
for (int ii = 0; ii < verticesLength; ii += 2)
for (int ii = 0; ii + 1 < verticesLength; ii += 2)
{
float vx = vertices[ii], vy = vertices[ii + 1];
minX = Math.Min(minX, vx);