diff options
Diffstat (limited to 'comp.c')
-rw-r--r-- | comp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -82,6 +82,8 @@ struct segment next_dart(int rem, int darts_in_hand) void comp_visit(struct leg *l) { + if (l->n_visits == l->size_visits) + leg_grow_visits(l); struct visit *v = l->visits + l->n_visits++; v->darts = calloc(3, sizeof(*(v->darts))); v->ccoords = calloc(3, sizeof(*(v->ccoords))); |