summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-24 08:55:26 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-24 09:37:44 (EDT)
commit79a828b2e0464b6768e98a48eef6497ea3960995 (patch)
tree08ac30965560aef63b1d427268c3680a771fe8b5
parent99942f51efaa8639797e52d7b54d8b639f5d7733 (diff)
downloaddodge-balls-79a828b2e0464b6768e98a48eef6497ea3960995.zip
dodge-balls-79a828b2e0464b6768e98a48eef6497ea3960995.tar.gz
dodge-balls-79a828b2e0464b6768e98a48eef6497ea3960995.tar.bz2
main-menu: Fix game action renderer argument
-rw-r--r--src/main-menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-menu.c b/src/main-menu.c
index de47174..5759c9f 100644
--- a/src/main-menu.c
+++ b/src/main-menu.c
@@ -266,7 +266,7 @@ db_main_menu(SDL_Window *window)
buttons[i + 2]->p = buttons[i + 1];
buttons[i + 1]->n = buttons[i + 2];
buttons[i + 2]->action = &_db_main_menu_action_game;
- buttons[i + 2]->user_data_1 = games[i];
+ buttons[i + 2]->user_data_1 = renderer;
buttons[i + 2]->user_data_2 = games[i];
}
if (n > 0) {