This commit is contained in:
Valér Jakubčo 2022-01-22 00:31:30 +01:00
parent 6ede601c3c
commit 7eccafba51

View File

@ -11,7 +11,7 @@ int paths(char* maze, int journey, int size){
return 1; return 1;
} }
if(journey >= 0 && journey < (size*size) && maze[journey]==' ' && maze[journey]!='*'){ if(journey >= 0 && journey <= (size*size) && maze[journey]==' ' && maze[journey]!='*'){
maze[journey] = '*'; maze[journey] = '*';
//Pohyb dole //Pohyb dole