diff options
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r-- | web/dartboat_wasm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index e7f0415..691be77 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -321,6 +321,8 @@ EMSCRIPTEN_KEEPALIVE void user_visit(int points) } struct leg *l = state->active_leg; + if (l->n_visits == l->size_visits) + leg_grow_visits(l); struct visit *v = l->visits + l->n_visits++; v->points = points; l->rem -= points; |