From d5993eb725a8353376beeb0551b2ce8ebf1c9df2 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 13 Jul 2014 20:49:23 +0200 Subject: fix an OB1 in Menus_CloseAll() --- src/ui/ui_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 1ba758ad..fdee188a 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -1589,7 +1589,7 @@ void Menus_CloseAll( void ) if( openMenuCount > 0 ) { for( i = openMenuCount; i > 0; i-- ) - Menus_Close( menuStack[ i ] ); + Menus_Close( menuStack[ i - 1 ] ); openMenuCount = 0; } -- cgit