diff --git a/src/BasicBehaveEngine/nodes/flow/SetDelay.ts b/src/BasicBehaveEngine/nodes/flow/SetDelay.ts index 0d06f21..0641d6b 100644 --- a/src/BasicBehaveEngine/nodes/flow/SetDelay.ts +++ b/src/BasicBehaveEngine/nodes/flow/SetDelay.ts @@ -36,7 +36,7 @@ export class SetDelay extends BehaveEngineNode { } else { const delayIndex = this.graphEngine.scheduledDelays.length; const delayId = setTimeout(() => { - this.addEventToWorkQueue(this.flows.completed); + this.addEventToWorkQueue(this.flows.done); }, duration * 1000); this.graphEngine.pushScheduledDelay(delayId); this._runningDelayIndices.push(delayIndex); diff --git a/src/authoring/AuthoringNodeSpecs.ts b/src/authoring/AuthoringNodeSpecs.ts index 169ee39..7cabb1e 100644 --- a/src/authoring/AuthoringNodeSpecs.ts +++ b/src/authoring/AuthoringNodeSpecs.ts @@ -984,7 +984,7 @@ export const flowNodeSpecs: IAuthoringNode[] = [ output: { flows: [ { - id: "completed", + id: "done", description: "The flow to be followed after the delay", }, {