Ensure menu is valid before doing anything.

This commit is contained in:
Bill Currie 2013-01-13 21:49:43 +09:00
parent a05e7253e4
commit cf5a3d805b

View file

@ -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 ();