diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-01 06:47:55 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-01 06:47:55 +0000 |
| commit | 7905d6dc07b5ba89fc3dfded3642fbcd599ae8e9 (patch) | |
| tree | 99dd9193cf4d63ae47e9d2cb5a3acb2f708e772a /mines.c | |
| parent | a50a65120c3b4230b6a1b95a52c8b6d3299a43c7 (diff) | |
| download | puzzles-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || |