From 7eccafba51d713eba12cef94cb34b176ec0fa77a Mon Sep 17 00:00:00 2001 From: vj586da Date: Sat, 22 Jan 2022 00:31:30 +0100 Subject: [PATCH] askdf --- sk1a/maze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sk1a/maze.c b/sk1a/maze.c index b4d90f6..f481051 100644 --- a/sk1a/maze.c +++ b/sk1a/maze.c @@ -11,7 +11,7 @@ int paths(char* maze, int journey, int size){ return 1; } - if(journey >= 0 && journey < (size*size) && maze[journey]==' ' && maze[journey]!='*'){ + if(journey >= 0 && journey <= (size*size) && maze[journey]==' ' && maze[journey]!='*'){ maze[journey] = '*'; //Pohyb dole