mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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];
|
menu_item_t *item = menu->items[menu->cur_item];
|
||||||
if (item->func) {
|
if (item->func) {
|
||||||
G_INT (&menu_pr_state, OFS_PARM0) = key;
|
G_INT (&menu_pr_state, OFS_PARM0) =
|
||||||
G_INT (&menu_pr_state, OFS_PARM1) =
|
|
||||||
PR_SetString (&menu_pr_state, item->text);
|
PR_SetString (&menu_pr_state, item->text);
|
||||||
|
G_INT (&menu_pr_state, OFS_PARM1) = key;
|
||||||
PR_ExecuteProgram (&menu_pr_state, item->func);
|
PR_ExecuteProgram (&menu_pr_state, item->func);
|
||||||
} else {
|
} else {
|
||||||
menu = item;
|
menu = item;
|
||||||
|
|
Loading…
Reference in a new issue