From: Simon Tatham Date: Wed, 1 Jun 2005 06:47:55 +0000 (+0000) Subject: Typo in click bounds checking. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9;p=sgt-puzzles.git Typo in click bounds checking. [originally from svn r5890] --- 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 ||