File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111CommandListMaker::CommandListMaker (IProfile *p) {
1212 profile = p;
13- storage = new std::vector<stepBase*>() ;
13+ storage = NULL ;
1414
1515 // TODO Auto-generated constructor stub
1616}
@@ -76,6 +76,12 @@ void CommandListMaker::makeBasic() {
7676
7777void CommandListMaker::makeDefenceBreaker () {
7878
79+ if (storage != NULL ){
80+ delete storage;
81+ storage = NULL ;
82+ }
83+ storage = new std::vector<stepBase*>();
84+
7985 /* Gets the current selction from the dashboard (should default to LowBar)*/
8086 // Selection
8187 void * temp = autoPosition->GetSelected ();
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class Robot: public IterativeRobot {
9696 x = 0 ;
9797 SmartDashboard::PutString (" State" , " Autonomous Init" );
9898
99- clMaker->makeBasic ();
99+ clMaker->makeDefenceBreaker ();
100100 auton = clMaker->getList ();
101101
102102 nLNode* test = master->head ;
You can’t perform that action at this time.
0 commit comments