Skip to content

Commit

Permalink
the address of 'headModelName' will always evaluate as 'true'
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Jul 19, 2007
1 parent a0316f9 commit f3e1a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ui/ui_players.c
Expand Up @@ -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] );
}
else {
Expand Down

0 comments on commit f3e1a64

Please sign in to comment.