summaryrefslogtreecommitdiff
path: root/dartboat.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-25 22:03:59 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-25 22:03:59 -0700
commit656be88ba3b0db383101449d7d2f09348601d7d7 (patch)
tree03528a96c46ca067372eacb2c9281ed019114063 /dartboat.c
parentaff81beab2bb507a9d421f7e4765dbac4a28b0df (diff)
downloaddartboat-656be88ba3b0db383101449d7d2f09348601d7d7.tar.gz
dartboat-656be88ba3b0db383101449d7d2f09348601d7d7.tar.xz
handle visits memory entirely from match file
Diffstat (limited to 'dartboat.c')
-rw-r--r--dartboat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dartboat.c b/dartboat.c
index 743c91b..fdaf6d1 100644
--- a/dartboat.c
+++ b/dartboat.c
@@ -33,9 +33,7 @@ void test_match(int start_points)
void user_visit(struct leg *l, char *name)
{
- 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);
char status[100];
int len = sprintf(status, " %s has %d remaining", name, l->rem);