Aktualizovat du5/program.c

This commit is contained in:
Tomáš Vlček 2026-04-15 11:02:06 +00:00
parent a15d536937
commit 7ffdfd5849

View File

@ -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");
}