fixed some segfaults

This commit is contained in:
Johannes Reinhardt 2008-07-12 02:37:53 +02:00
parent 9897ce5e22
commit 5346690791
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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*/