summaryrefslogtreecommitdiff
path: root/dartbot.c
diff options
context:
space:
mode:
Diffstat (limited to 'dartbot.c')
-rw-r--r--dartbot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dartbot.c b/dartbot.c
index 03b4ec5..1759846 100644
--- a/dartbot.c
+++ b/dartbot.c
@@ -34,6 +34,8 @@ void test_match(int start_points)
void user_visit(struct leg *l)
{
+ if (l->n_visits == l->size_visits)
+ leg_grow_visits(l);
struct visit *v = l->visits + l->n_visits++;
char status[100];