summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 04fbeb7..abfecef 100644
--- a/main.c
+++ b/main.c
@@ -39,7 +39,7 @@ void get_neighbours(F_ARGS)
{
if(board[y + 1][x]) ++neighbours[y][x]; // s
- if((x + 1) < size->height && board[y + 1][x + 1]) ++neighbours[y][x]; // se
+ if((x + 1) < size->width && board[y + 1][x + 1]) ++neighbours[y][x]; // se
if( x > 0 && board[y + 1][x - 1]) ++neighbours[y][x]; // sw
}
}