diff options
Diffstat (limited to 'SA_PlanCommands.cpp')
-rw-r--r-- | SA_PlanCommands.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/SA_PlanCommands.cpp b/SA_PlanCommands.cpp index 94ccc2c45c2..8679591772a 100644 --- a/SA_PlanCommands.cpp +++ b/SA_PlanCommands.cpp @@ -186,12 +186,14 @@ bool SA_AddTaskCmd::execute_next (void) bool isInitial = false; + if (this->tasks_.empty ()) + return false; + if(this->tasks_.front() == 20){ isInitial = true; } - if (this->tasks_.empty ()) - return false; + this->working_plan_->execute (this); this->num_tries_++; @@ -752,7 +754,7 @@ bool SA_ResolveCLThreatCmd::execute_next (void) } else { - this->undo(); + // this->undo(); return false; } |