mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
2120d9bba8
commit
cea6126658
1 changed files with 5 additions and 3 deletions
|
@ -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(¤tmenu->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(¤tmenu->selecteditem->custom, currentmenu, key);
|
||||
break;
|
||||
case mt_edit:
|
||||
|
|
Loading…
Reference in a new issue