diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-30 05:28:06 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-30 05:28:06 -0700 |
commit | 8921ce29627b45d78d1870d550418fc3d13dcdbe (patch) | |
tree | 1b5b37a317c93d55247ac3da719a8dcd8eaf072b /dartbot.c | |
parent | fbdb393ae1e2ea5d368e4dda1577a10715e26a75 (diff) | |
download | dartboat-8921ce29627b45d78d1870d550418fc3d13dcdbe.tar.gz dartboat-8921ce29627b45d78d1870d550418fc3d13dcdbe.tar.xz |
grow memory for visits as needed
Diffstat (limited to 'dartbot.c')
-rw-r--r-- | dartbot.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]; |