the address of 'headModelName' will always evaluate as 'true'

This commit is contained in:
Ludwig Nussel 2007-07-19 08:10:32 +00:00
parent a0316f9397
commit f3e1a64c04

View file

@ -1204,7 +1204,7 @@ qboolean UI_RegisterClientModelname( playerInfo_t *pi, const char *modelSkinName
} }
} }
if (headModelName && headModelName[0] == '*' ) { if (headModelName[0] == '*' ) {
Com_sprintf( filename, sizeof( filename ), "models/players/heads/%s/%s.md3", &headModelName[1], &headModelName[1] ); Com_sprintf( filename, sizeof( filename ), "models/players/heads/%s/%s.md3", &headModelName[1], &headModelName[1] );
} }
else { else {