X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=planner.cpp;h=02d477233d3534727790404178f4c3b0c97cbc84;hp=02e634220921971f7c9ff3f42bd873585789adac;hb=a1941ebc8535c578f0989f847794917096274f8e;hpb=318003cdb8615b39ef71761f55ac2159caabbf47 diff --git a/planner.cpp b/planner.cpp index 02e6342..02d4772 100644 --- a/planner.cpp +++ b/planner.cpp @@ -1,6 +1,7 @@ #include "planner.h" #include "node.h" #include +#include using namespace std; using namespace __gnu_cxx; @@ -146,8 +147,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){