summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 20:49:23 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:08 +0100
commitd5993eb725a8353376beeb0551b2ce8ebf1c9df2 (patch)
tree67c85e04961696c8456199152fea24e430667d18
parent40669e28041d5cf9863d3464c41fe39979aa39d6 (diff)
fix an OB1 in Menus_CloseAll()
-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;
}