From 656be88ba3b0db383101449d7d2f09348601d7d7 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 25 May 2022 22:03:59 -0700 Subject: handle visits memory entirely from match file --- dartboat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dartboat.c') 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); -- cgit v1.2.3-70-g09d2