summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/snake.c b/snake.c
index 0060f64..92cc6dd 100644
--- a/snake.c
+++ b/snake.c
@@ -78,6 +78,7 @@ int main(void)
getmaxyx(stdscr, h, w);
/* setup snake */
head *snake;
+ snake->score = 0;
snake->x = 0;
snake->y = 5;
snake->oldx = snake->x;