engine: client: fixed height argument writing in Con_DrawStringLen

This commit is contained in:
SNMetamorph 2021-07-30 23:53:52 +04:00 committed by Alibek Omarov #SupportRMS
parent 8d5426cdcd
commit c4ef42009c
1 changed files with 7 additions and 4 deletions

View File

@ -990,11 +990,14 @@ void GAME_EXPORT Con_DrawStringLen( const char *pText, int *length, int *height
{
int curLength = 0;
if( !length ) return;
*length = 0;
if( !con.curFont )
return;
if( height )
*height = con.curFont->charHeight;
if (!length)
return;
if( !con.curFont ) return;
if( height ) *height = con.curFont->charHeight;
*length = 0;
while( *pText )
{