summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrebeccadoth <rebeccadoth@disroot.org>2026-11-10 19:33:13 +0100
committerrebeccadoth <rebeccadoth@disroot.org>2026-11-10 19:33:13 +0100
commit9a96d8f4880fe908ef56207ed5120097095330a4 (patch)
tree5c025829f1b870437100a8f4410366197f576c37
parent57866c550b0a902eebb6864cc6cdd9d08f4c84e1 (diff)
-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
}
}