diff --git a/du5/program.c b/du5/program.c index b0849ab..1ea6844 100644 --- a/du5/program.c +++ b/du5/program.c @@ -36,7 +36,8 @@ int buildATree() char *line = lines[indexLine]; indexLine += 1; //pomocny index - int current = nodeCount += 1; + int current = nodeCount; + nodeCount += 1; if (line[0] == '*') { tree[current].isAnswer = true;