diff options
| author | rebeccadoth <rebeccadoth@disroot.org> | 2026-11-10 19:33:13 +0100 |
|---|---|---|
| committer | rebeccadoth <rebeccadoth@disroot.org> | 2026-11-10 19:33:13 +0100 |
| commit | 9a96d8f4880fe908ef56207ed5120097095330a4 (patch) | |
| tree | 5c025829f1b870437100a8f4410366197f576c37 /main.c | |
| parent | 57866c550b0a902eebb6864cc6cdd9d08f4c84e1 (diff) | |
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } } |
