diff --git a/sk1a/maze.c b/sk1a/maze.c index 458e002..b4d90f6 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]==' '){ + if(journey >= 0 && journey < (size*size) && maze[journey]==' ' && maze[journey]!='*'){ maze[journey] = '*'; //Pohyb dole