summaryrefslogtreecommitdiff
path: root/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'comp.c')
-rw-r--r--comp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/comp.c b/comp.c
index 4f40609..012eea1 100644
--- a/comp.c
+++ b/comp.c
@@ -78,9 +78,7 @@ 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++;
+ struct visit *v = leg_visit(l);
v->darts = calloc(3, sizeof(*v->darts));
v->ccoords = calloc(3, sizeof(*v->ccoords));