mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
get the param order correct for the menu item callback
This commit is contained in:
parent
98f8642081
commit
b64693a332
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue