]> ruin.nu Git - popboot.git/blobdiff - planner.cpp
including iterator
[popboot.git] / planner.cpp
index 02e634220921971f7c9ff3f42bd873585789adac..02d477233d3534727790404178f4c3b0c97cbc84 100644 (file)
@@ -1,6 +1,7 @@
 #include "planner.h"
 #include "node.h"
 #include <iostream>
+#include <iterator>
 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){