summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-10-22 11:49:37 +0200
committerenneract <trem.redman@gmail.com>2014-10-22 11:49:37 +0200
commitf3a372cba876499d6ff78cd9b8fd383d387f0998 (patch)
treeac7c6ecb4a244bfa40ffb07f5d908a7d87bcef9b
parente1f11951c6fdc8c4d8e044a486bf342a5c0349c5 (diff)
Fix a segfault in cgame console.HEADmaster
-rw-r--r--src/cgame/cg_main.c2
1 files changed, 1 insertions, 1 deletions
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--;