Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/FallbackNode.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@ if he/she is fully rested.
// index is initialized to 0 in the constructor
status = RUNNING;

while( index < number_of_children )
for (int index=0; index < number_of_children; index++)
{
child_status = child[index]->tick();

if( child_status == RUNNING ) {
// Suspend execution and return RUNNING.
// At the next tick, index will be the same.
return RUNNING;
}
else if( child_status == FAILURE ) {
Expand Down