diff --git a/sk1a/maze.c b/sk1a/maze.c index bd24e04..129e0e4 100644 --- a/sk1a/maze.c +++ b/sk1a/maze.c @@ -12,7 +12,7 @@ int paths(char* maze, int journey, int size){ return 1; } - if(journey >= 0 && journey < (size*size) && maze[journey]==' '){ + if(journey >= 0 && journey <= (size*size) && maze[journey]==' '){ maze[journey] = '*';