Skip to content

Commit

Permalink
Bug fix of normal and arcade modes
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelJumbo committed Oct 9, 2022
1 parent 4fc7f66 commit 4bc67df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) {
}

if (snake->head->x == food.x && snake->head->y == food.y) {
if (selectedMode == ARCADE || selectedMode == SCREENSAVER) {
if (selectedMode == AUTOPILOT || selectedMode == SCREENSAVER) {
stack_free(path);
path = NULL;
}
Expand Down

0 comments on commit 4bc67df

Please sign in to comment.