- fixed type confusion with ?: operator in FMugShot::GetFace.

This commit is contained in:
Christoph Oelckers 2016-02-05 10:08:49 +01:00
parent 4751bffd5f
commit c8d25378d5

View file

@ -502,7 +502,8 @@ FTexture *FMugShot::GetFace(player_t *player, const char *default_face, int accu
}
if (CurrentState != NULL)
{
const char *skin_face = player->morphTics ? player->MorphedPlayerClass->Face : skins[player->userinfo.GetSkin()].face;
int skin = player->userinfo.GetSkin();
const char *skin_face = player->morphTics ? player->MorphedPlayerClass->Face.GetChars() : skins[skin].face;
return CurrentState->GetCurrentFrameTexture(default_face, skin_face, level, angle);
}
return NULL;