Skip to content

Commit

Permalink
Merge pull request #115 from RAIRLab/109-the-great-component-guillotine
Browse files Browse the repository at this point in the history
no executions on my watch
  • Loading branch information
AnushaTiwari5 authored Oct 12, 2023
2 parents 2198c70 + 5eb335f commit ce71674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AEG/AEGTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class AEGTree {
currentCut.child = incomingNode;

if (incomingNode instanceof CutNode) {
for (let i = 0; i < originalChildren.length; i++) {
for (let i = originalChildren.length - 1; i >= 0; i--) {
if (incomingNode.containsNode(originalChildren[i])) {
incomingNode.child = originalChildren[i];
currentCut.children.splice(i, 1);
Expand Down

0 comments on commit ce71674

Please sign in to comment.