fixed amb806 - menus with no items caused halt
authorDavid Anderson <dvander@alliedmods.net>
Fri Aug 17 20:28:19 2007 +0000 (2007-08-17)
changeset 1345508c26f10e4f
parent 1344 a450a8caa531
child 1346 41e31d04a3a0
fixed amb806 - menus with no items caused halt
core/MenuManager.cpp
     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? */