Prevent out of array index
This commit is contained in:
@@ -3912,9 +3912,9 @@ int n;
|
|||||||
xchar xx = (xchar) x, yy = (xchar) y;
|
xchar xx = (xchar) x, yy = (xchar) y;
|
||||||
|
|
||||||
while (n > 0) {
|
while (n > 0) {
|
||||||
|
--n;
|
||||||
if (xs[n] == xx && ys[n] == yy)
|
if (xs[n] == xx && ys[n] == yy)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
--n;
|
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user