X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/93b1da3d0f613d616b930419354558365847bc7d..17bebcac7bf49c2927fb3bc0d63a6fdc268eb0d7:/mines.c diff --git a/mines.c b/mines.c index fcf439d..6a3d7aa 100644 --- a/mines.c +++ b/mines.c @@ -2454,7 +2454,7 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds, cx = FROMCOORD(x); cy = FROMCOORD(y); - if (cx < 0 || cx >= from->w || cy < 0 || cy > from->h) + if (cx < 0 || cx >= from->w || cy < 0 || cy >= from->h) return NULL; if (button == LEFT_BUTTON || button == LEFT_DRAG ||