]> ruin.nu Git - popboot.git/blobdiff - planner.cpp
Forgot to add the start node
[popboot.git] / planner.cpp
index 5e1719e11b48619a3a805801893e4bb0fa46408f..b675ce061f6f8b29a3e0ee0352548616ab22e715 100644 (file)
@@ -7,6 +7,7 @@ using namespace __gnu_cxx;
 Planner::Planner(std::vector<Action> actions, literals init, literals goal){
 
        _start = new Node(Action("",literals(), init));
+       addNode(_start);
        Node* finish = new Node(Action("",goal,literals()));
 
        for(vector<Action>::iterator action = actions.begin(); action != actions.end(); ++action){