From 9f24ef25bf105a28c17e55962baab23061bf39eb Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 7 Nov 2019 14:44:42 -0800 Subject: [PATCH] Better account for the uninitialised signcolor --- src/p_enemy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index bf9e01348..1abf1271e 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -5077,7 +5077,7 @@ void A_SignPlayer(mobj_t *actor) INT32 locvar1 = var1; skin_t *skin = NULL; mobj_t *ov; - UINT8 facecolor, signcolor = SKINCOLOR_NONE; + UINT8 facecolor, signcolor; UINT32 signframe = states[actor->info->raisestate].frame; #ifdef HAVE_BLUA @@ -5130,6 +5130,8 @@ void A_SignPlayer(mobj_t *actor) signcolor = Color_Opposite[actor->target->player->skincolor - 1][0]; signframe += (15 - Color_Opposite[actor->target->player->skincolor - 1][1]); } + else + signcolor = SKINCOLOR_NONE; } else if (locvar1 != -3) // set to a defined skin {