mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +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;
|
menu_item_t *item;
|
||||||
|
|
||||||
|
if (!menu)
|
||||||
|
return;
|
||||||
|
|
||||||
item = menu->items[menu->cur_item];
|
item = menu->items[menu->cur_item];
|
||||||
if (item->func) {
|
if (item->func) {
|
||||||
run_menu_pre ();
|
run_menu_pre ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue