mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Ensure menu is valid before doing anything.
This commit is contained in:
parent
a05e7253e4
commit
cf5a3d805b
1 changed files with 3 additions and 0 deletions
|
@ -428,6 +428,9 @@ bi_Menu_Enter (progs_t *pr)
|
|||
{
|
||||
menu_item_t *item;
|
||||
|
||||
if (!menu)
|
||||
return;
|
||||
|
||||
item = menu->items[menu->cur_item];
|
||||
if (item->func) {
|
||||
run_menu_pre ();
|
||||
|
|
Loading…
Reference in a new issue