diff --git a/src/sp_lev.c b/src/sp_lev.c index 11d692501..488a04d87 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -3912,9 +3912,9 @@ int n; xchar xx = (xchar) x, yy = (xchar) y; while (n > 0) { + --n; if (xs[n] == xx && ys[n] == yy) return TRUE; - --n; } return FALSE; }