diff -r a450a8caa531 -r 508c26f10e4f core/MenuManager.cpp --- a/core/MenuManager.cpp Thu Aug 16 14:58:25 2007 +0000 +++ b/core/MenuManager.cpp Fri Aug 17 20:28:19 2007 +0000 @@ -262,7 +262,7 @@ */ unsigned int i = startItem; unsigned int foundItems = 0; - while (true) + while (totalItems) { ItemDrawInfo &dr = drawItems[foundItems].draw; /* Is the item valid? */