don't handle key presses if there's no callback and no items

This commit is contained in:
Bill Currie 2002-01-20 00:47:01 +00:00
parent 9f6a16af18
commit 9f67e81049

View file

@ -420,6 +420,8 @@ Menu_KeyEvent (knum_t key, short unicode, qboolean down)
if (G_INT (&menu_pr_state, OFS_RETURN))
return;
}
if (!menu->items)
return;
switch (key) {
case QFK_DOWN:
case QFM_WHEEL_DOWN: