aboutsummaryrefslogtreecommitdiff
path: root/mines.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-06-01 06:47:55 +0000
committerSimon Tatham <anakin@pobox.com>2005-06-01 06:47:55 +0000
commit7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9 (patch)
tree99dd9193cf4d63ae47e9d2cb5a3acb2f708e772a /mines.c
parenta50a65120c3b4230b6a1b95a52c8b6d3299a43c7 (diff)
downloadpuzzles-7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9.zip
puzzles-7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9.tar.gz
puzzles-7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9.tar.bz2
puzzles-7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9.tar.xz
Typo in click bounds checking.
[originally from svn r5890]
Diffstat (limited to 'mines.c')
-rw-r--r--mines.c2
1 files changed, 1 insertions, 1 deletions
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 ||