From 124e63554198740d0d391f05fc232e63515fdb8a Mon Sep 17 00:00:00 2001 From: Wuqiqi123 <37368540+Wuqiqi123@users.noreply.github.com> Date: Sun, 12 Jul 2020 10:28:38 +0800 Subject: [PATCH] Update SequenceNode.md --- docs/SequenceNode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/SequenceNode.md b/docs/SequenceNode.md index 302669b88..3f4e5eec1 100644 --- a/docs/SequenceNode.md +++ b/docs/SequenceNode.md @@ -45,9 +45,9 @@ This tree represents the behavior of a sniper in a computer game. status = RUNNING; // _index is a private member - while( index < number_of_children) + while(_index < number_of_children) { - child_status = child[index]->tick(); + child_status = child[_index]->tick(); if( child_status == SUCCESS ) { _index++;