na pc mi to ide aj s valgrindom
This commit is contained in:
parent
67fd7de2aa
commit
6ede601c3c
@ -11,7 +11,7 @@ int paths(char* maze, int journey, int size){
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(journey >= 0 && journey < (size*size) && maze[journey]==' '){
|
if(journey >= 0 && journey < (size*size) && maze[journey]==' ' && maze[journey]!='*'){
|
||||||
maze[journey] = '*';
|
maze[journey] = '*';
|
||||||
|
|
||||||
//Pohyb dole
|
//Pohyb dole
|
||||||
|
Loading…
Reference in New Issue
Block a user