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

View file

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