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