diff --git a/lib/nodes/decorators/While.ts b/lib/nodes/decorators/While.ts index 79579a6..19fea13 100644 --- a/lib/nodes/decorators/While.ts +++ b/lib/nodes/decorators/While.ts @@ -52,7 +52,6 @@ export class While extends Decorator { if (res === rc.RUNNING) { // yield to the behavior tree because the child node is running - storage.running = 0; return res; } else if (storage.break) { // teardown internal state and yield to the behavior tree because the loop has completed