Don't die when no menu choices are provided.

This commit is contained in:
Kris Maglione 2009-05-29 16:03:54 -04:00
parent 2c0705d1ae
commit 54e546e599

View File

@ -157,6 +157,8 @@ _menu_draw(bool draw) {
matchstart = matchidx;
else if(matchidx == matchstart->prev)
matchend = matchidx;
if (matchend == nil)
matchend = matchstart;
if(matchend == matchstart->prev && matchstart != matchidx) {
n = itemoff;