libgdx/gdx-ai

Is there something wrong here in Parallel?

hl845740757 opened this issue · 0 comments

Issue details

It seems that reset should be replaced by resettask

 
	public void resetAllChildren() {
		for (int i = 0, n = getChildCount(); i < n; i++) {
			Task<E> child = getChild(i);
			child.reset();
		}
	}
       //  Orchestrator.Join
        if (parallel.lastResult != null) { // Current child has finished either with success or fail
            parallel.cancelRunningChildren(parallel.noRunningTasks ? parallel.currentChildIndex + 1 : 0);
            parallel.resetAllChildren();
            if (parallel.lastResult)
                parallel.success();
            else
                parallel.fail();
            return;
        }

Version of gdx-ai and/or relevant dependencies

1.8.2