We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a62d46 commit e590ca9Copy full SHA for e590ca9
1 file changed
src/engine/client/cl_console.cpp
@@ -307,6 +307,7 @@ bool Con_CheckResize()
307
{
308
int consoleVidWidth = cls.windowConfig.vidWidth - 2 * (consoleState.margin.sides + consoleState.padding.sides );
309
textWidthInChars = consoleVidWidth / SCR_ConsoleFontUnicharWidth( 'W' );
310
+ textWidthInChars = std::max( 1, textWidthInChars );
311
}
312
else
313
@@ -875,7 +876,7 @@ void Con_DrawConsoleContent()
875
876
877
re.SetColor( console_color_alpha );
878
- for ( const auto& token : Color::Parser( consoleState.lines[row].c_str(), console_color_alpha ) )
879
+ for ( const auto& token : Color::Parser( consoleState.lines.at( row ).c_str(), console_color_alpha ) )
880
881
if ( token.Type() == Color::Token::TokenType::COLOR )
882
0 commit comments