From 7ffdfd5849f581cf2b66e6d3ed76e4272dab1b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Wed, 15 Apr 2026 11:02:06 +0000 Subject: [PATCH] Aktualizovat du5/program.c --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 7ca54db..b9045d3 100644 --- a/du5/program.c +++ b/du5/program.c @@ -139,7 +139,7 @@ int main() int root = buildATree(); printf("Expert z bufetu to vie.\n"); - if (indexLine != lineCount || root == -1 || nodeCount == 0) + if (treeIsBroken || indexLine != lineCount || answerCount == 0) { printf("Chybna databaza\n"); }