Make UI_DrawProportionalString handle NULL string

This makes the function consistent with UI_DrawString.
This commit is contained in:
Zack Middleton 2018-04-22 17:56:43 -05:00
parent 05758d52f4
commit 7ad05ccf2d
1 changed files with 4 additions and 0 deletions

View File

@ -512,6 +512,10 @@ void UI_DrawProportionalString( int x, int y, const char* str, int style, vec4_t
int width;
float sizeScale;
if( !str ) {
return;
}
sizeScale = UI_ProportionalSizeScale( style );
switch( style & UI_FORMATMASK ) {