Fixed crashes in the player setup menu.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1951 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-11 18:06:54 +00:00
parent 2120d9bba8
commit cea6126658

View file

@ -1103,6 +1103,7 @@ void M_Complex_Key(int key)
return;
if (currentmenu->selecteditem && currentmenu->selecteditem->common.type == mt_custom && (key == K_DOWNARROW || key == K_UPARROW || key == K_TAB))
if (currentmenu->selecteditem->custom.key)
if (currentmenu->selecteditem->custom.key(&currentmenu->selecteditem->custom, currentmenu, key))
return;
@ -1176,6 +1177,7 @@ void M_Complex_Key(int key)
}
break;
case mt_custom:
if (currentmenu->selecteditem->custom.key)
currentmenu->selecteditem->custom.key(&currentmenu->selecteditem->custom, currentmenu, key);
break;
case mt_edit: