From 6ede601c3ce945e861de9b7677965eb4c66149a7 Mon Sep 17 00:00:00 2001 From: vj586da Date: Sat, 22 Jan 2022 00:28:54 +0100 Subject: [PATCH] na pc mi to ide aj s valgrindom --- sk1a/maze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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