fixed some segfaults
This commit is contained in:
parent
9897ce5e22
commit
5346690791
@ -20,6 +20,7 @@ int main(int argc, char **argv) {
|
||||
/*create trivial path towards the origin*/
|
||||
p = path_new(&t->map,&t->vehicle);
|
||||
|
||||
trial_wait_for_input(t);
|
||||
while(t->alive){
|
||||
trial_wait_for_input(t);
|
||||
path_execute(t,p);
|
||||
|
@ -20,6 +20,8 @@ path *path_new(map* m,vehicle *v){
|
||||
command* tmp;
|
||||
path* res;
|
||||
double angle, stop;
|
||||
|
||||
res = g_slice_new(path);
|
||||
res->commands = g_queue_new();
|
||||
/* Calculate a trivial path to the origin*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user