Make UI_DrawProportionalString handle NULL string
This makes the function consistent with UI_DrawString.
This commit is contained in:
1 parent
05758d52f4
commit
7ad05ccf2d
1 file changed
+4
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user