From b64693a3328d3a59ac9dbb99978780da5c98b229 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 29 Jan 2002 18:16:49 +0000 Subject: [PATCH] get the param order correct for the menu item callback --- libs/console/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/console/menu.c b/libs/console/menu.c index 0f2f9fc08..0f51ca308 100644 --- a/libs/console/menu.c +++ b/libs/console/menu.c @@ -462,9 +462,9 @@ Menu_KeyEvent (knum_t key, short unicode, qboolean down) { menu_item_t *item = menu->items[menu->cur_item]; if (item->func) { - G_INT (&menu_pr_state, OFS_PARM0) = key; - G_INT (&menu_pr_state, OFS_PARM1) = + G_INT (&menu_pr_state, OFS_PARM0) = PR_SetString (&menu_pr_state, item->text); + G_INT (&menu_pr_state, OFS_PARM1) = key; PR_ExecuteProgram (&menu_pr_state, item->func); } else { menu = item;