Skip to content

Commit

Permalink
fix: Sequence node only worked when inputs are named like array indic…
Browse files Browse the repository at this point in the history
…es, but id is purely informative
  • Loading branch information
hybridherbst committed Nov 13, 2024
1 parent 8bd53f9 commit fd48de6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/BasicBehaveEngine/nodes/flow/Sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export class Sequence extends BehaveEngineNode {
override processNode(flowSocket?: string) {
this.graphEngine.processNodeStarted(this)

for (let i = 0; i < Number(this._numberOutputFlows); i++) {
this.processFlow(this.flows[i]);
const flows = Object.keys(this.flows);
for (let i = 0; i < flows.length; i++) {
const flow = this.flows[flows[i]];
if (!flow) continue;
this.processFlow(flow);
}
}
}

0 comments on commit fd48de6

Please sign in to comment.