summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-18 19:53:03 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-18 19:53:03 (EDT)
commit97eead3aaf900e15fb6925b14c2e391c73c923d2 (patch)
tree9796c89c2e1a0521d610c486824d742a90bb4648
parentd0bfb0c2ba3b11ff8bd28f894dd32660d5837b3c (diff)
downloaddodge-balls-97eead3aaf900e15fb6925b14c2e391c73c923d2.zip
dodge-balls-97eead3aaf900e15fb6925b14c2e391c73c923d2.tar.gz
dodge-balls-97eead3aaf900e15fb6925b14c2e391c73c923d2.tar.bz2
main-menu: Fix uninitialized links
-rw-r--r--src/main-menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main-menu.c b/src/main-menu.c
index d934ec4..5909e51 100644
--- a/src/main-menu.c
+++ b/src/main-menu.c
@@ -249,6 +249,8 @@ db_main_menu(void)
buttons[i + 2]->user_data = games[i];
}
if (n > 0) {
+ buttons[2]->u = NULL;
+ buttons[n + 1]->d = NULL;
buttons[i + 1]->n = buttons[0];
}