From 9a96d8f4880fe908ef56207ed5120097095330a4 Mon Sep 17 00:00:00 2001 From: rebeccadoth Date: Tue, 10 Nov 2026 19:33:13 +0100 Subject: fix --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') 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 } } -- cgit v1.2.3