summaryrefslogtreecommitdiff
path: root/src/sys/con_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/con_win32.c')
-rw-r--r--src/sys/con_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/con_win32.c b/src/sys/con_win32.c
index d33afa54..1ef0c9a7 100644
--- a/src/sys/con_win32.c
+++ b/src/sys/con_win32.c
@@ -209,7 +209,7 @@ static void CON_Show( void )
{
if( i < qconsole_linelen )
{
- if( Q_IsColorString( qconsole_line + i ) )
+ if( i + 1 < qconsole_linelen && Q_IsColorString( qconsole_line + i ) )
attrib = CON_ColorCharToAttrib( *( qconsole_line + i + 1 ) );
line[ i ].Char.AsciiChar = qconsole_line[ i ];