fixed amb806 - menus with no items caused halt
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401351
This commit is contained in:
parent
eb6ede7cef
commit
c6c5540457
@ -262,7 +262,7 @@ IMenuPanel *MenuManager::RenderMenu(int client, menu_states_t &md, ItemOrder ord
|
|||||||
*/
|
*/
|
||||||
unsigned int i = startItem;
|
unsigned int i = startItem;
|
||||||
unsigned int foundItems = 0;
|
unsigned int foundItems = 0;
|
||||||
while (true)
|
while (totalItems)
|
||||||
{
|
{
|
||||||
ItemDrawInfo &dr = drawItems[foundItems].draw;
|
ItemDrawInfo &dr = drawItems[foundItems].draw;
|
||||||
/* Is the item valid? */
|
/* Is the item valid? */
|
||||||
|
Loading…
Reference in New Issue
Block a user