]> ruin.nu Git - popboot.git/commitdiff
Forgot to add the start node
authorMichael Andreen <harv@ruin.nu>
Fri, 6 May 2005 21:11:59 +0000 (21:11 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 6 May 2005 21:11:59 +0000 (21:11 +0000)
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));
 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){
        Node* finish = new Node(Action("",goal,literals()));
 
        for(vector<Action>::iterator action = actions.begin(); action != actions.end(); ++action){