X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=planner.cpp;h=b38fd4797b8e73784b9b1ea2792546c188584517;hp=02e634220921971f7c9ff3f42bd873585789adac;hb=e68f7a74e8f83d4b619049cf0e67f7de5e03cf82;hpb=318003cdb8615b39ef71761f55ac2159caabbf47 diff --git a/planner.cpp b/planner.cpp index 02e6342..b38fd47 100644 --- a/planner.cpp +++ b/planner.cpp @@ -146,8 +146,8 @@ void Planner::execute(){ } } - cerr << "Number of nodes: " << _addedNodes.size() << endl; - //Clearing the init vector, effects will be added below. + //Clearing the init and goal vectors, new effects will be added below. + _init.clear(); _goal.clear(); Preconditions goal = _finish->preconditions(); for (Preconditions::const_iterator precond = goal.begin(); precond != goal.end(); ++precond){