summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/ui_shared.c2
1 files changed, 1 insertions, 1 deletions
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;
}