diff --git a/src/d_main.c b/src/d_main.c index ccce30fb3..1a7898c62 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -215,8 +215,8 @@ static void D_GamePadMenuScrollTicker(void) static void D_DeviceLEDTick(void) { UINT8 i; - UINT16 color[MAXSPLITSCREENPLAYERS]; - UINT16 curcolor[MAXSPLITSCREENPLAYERS]; + static UINT16 color[MAXSPLITSCREENPLAYERS] = {0, 0, 0, 0}; + static UINT16 curcolor[MAXSPLITSCREENPLAYERS] = {0, 0, 0, 0}; if (dedicated || numcontrollers == 0) { diff --git a/src/g_input.c b/src/g_input.c index 460f21899..f0121f37d 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -895,20 +895,17 @@ UINT16 G_GetSkinColor(INT32 playernum) { case 0: return cv_playercolor.value; - break; case 1: return cv_playercolor2.value; - break; case 2: return cv_playercolor3.value; - break; case 3: return cv_playercolor4.value; - break; default: return 0; - break; } + + return 0; } void G_SetPlayerGamepadIndicatorColor(INT32 playernum, UINT16 color)