From c8d25378d5751bbafa9bb07e752dd70e7010d375 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 5 Feb 2016 10:08:49 +0100 Subject: [PATCH] - fixed type confusion with ?: operator in FMugShot::GetFace. --- src/g_shared/sbar_mugshot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_shared/sbar_mugshot.cpp b/src/g_shared/sbar_mugshot.cpp index 10e87b1b8..1d30f01f9 100644 --- a/src/g_shared/sbar_mugshot.cpp +++ b/src/g_shared/sbar_mugshot.cpp @@ -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;