Skip to content

Commit

Permalink
fix(planning): Conditions & effect merging resulted in infinite loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Apr 6, 2024
1 parent 5b9889d commit 05a0a54
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ fn process_chronicle(ch: &mut Chronicle, num_removed: &mut u32) {
let condj = ch.conditions.remove(j);
ch.conditions[i].end = condj.end;
*num_removed += 1;
continue;
} else if condi.start == condj.end {
let condj = ch.conditions.remove(j);
ch.conditions[i].start = condj.start;
*num_removed += 1;
} else {
j += 1;
continue;
}
}
j += 1
}
i += 1
}
Expand Down

0 comments on commit 05a0a54

Please sign in to comment.