core/MenuManager.cpp
changeset 1345 508c26f10e4f
parent 1330 ab94316bb52b
child 1474 a3b73df84d88
     1.1 --- a/core/MenuManager.cpp	Thu Aug 16 14:58:25 2007 +0000
     1.2 +++ b/core/MenuManager.cpp	Fri Aug 17 20:28:19 2007 +0000
     1.3 @@ -262,7 +262,7 @@
     1.4  	 */
     1.5  	unsigned int i = startItem;
     1.6  	unsigned int foundItems = 0;
     1.7 -	while (true)
     1.8 +	while (totalItems)
     1.9  	{
    1.10  		ItemDrawInfo &dr = drawItems[foundItems].draw;
    1.11  		/* Is the item valid? */