This commit is contained in:
Valér Jakubčo 2022-01-22 02:04:03 +01:00
parent 19159e7cbc
commit 7dbf43f175

View File

@ -12,7 +12,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] = '*';