na pc mi to ide aj s valgrindom

This commit is contained in:
Valér Jakubčo 2022-01-22 00:28:54 +01:00
parent 67fd7de2aa
commit 6ede601c3c

View File

@ -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