更新
This commit is contained in:
@@ -178,8 +178,8 @@ namespace Opsive.BehaviorDesigner.Runtime.Tasks.Composites
|
||||
var taskComponent = taskComponents[randomSelectorComponent.Index];
|
||||
var branchComponent = branchComponents[taskComponent.BranchIndex];
|
||||
|
||||
// Do not continue if there will be an interrupt.
|
||||
if (branchComponent.InterruptType != InterruptType.None) {
|
||||
// Do not continue if there will be an interrupt or the branch cannot execute.
|
||||
if (branchComponent.InterruptType != InterruptType.None || !branchComponent.CanExecute) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user