From f3a372cba876499d6ff78cd9b8fd383d387f0998 Mon Sep 17 00:00:00 2001 From: enneract Date: Wed, 22 Oct 2014 11:49:37 +0200 Subject: Fix a segfault in cgame console. --- src/cgame/cg_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index ef69ea8..15a367d 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -522,7 +522,7 @@ void CG_RemoveNotifyLine( void ) cg.consoleText[ i ] = cg.consoleText[ i + offset ]; //pop up the first consoleLine - for( i = 0; i < cg.numConsoleLines; i++ ) + for( i = 0; i < cg.numConsoleLines - 1; i++ ) cg.consoleLines[ i ] = cg.consoleLines[ i + 1 ]; cg.numConsoleLines--; -- cgit