diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-25 22:03:59 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-25 22:03:59 -0700 |
commit | 656be88ba3b0db383101449d7d2f09348601d7d7 (patch) | |
tree | 03528a96c46ca067372eacb2c9281ed019114063 /comp.c | |
parent | aff81beab2bb507a9d421f7e4765dbac4a28b0df (diff) | |
download | dartboat-656be88ba3b0db383101449d7d2f09348601d7d7.tar.gz dartboat-656be88ba3b0db383101449d7d2f09348601d7d7.tar.xz |
handle visits memory entirely from match file
Diffstat (limited to 'comp.c')
-rw-r--r-- | comp.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)); |