From ce82aa1f19f62279da65d4c48bbb040272733064 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 23 Oct 2024 14:59:52 +0200 Subject: [PATCH] fix a -Wmaybe-uninitialized warning deez nuts are being used unitialised this will only ever be used with TC_RAINBOW so why not move it into the condition for it? --- src/hardware/hw_md2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hardware/hw_md2.c b/src/hardware/hw_md2.c index 03a827a9b..172f9cf80 100644 --- a/src/hardware/hw_md2.c +++ b/src/hardware/hw_md2.c @@ -823,10 +823,9 @@ static void HWR_CreateBlendedTexture(patch_t *gpatch, patch_t *blendgpatch, GLMi } } } - } - if (translen > 0) colorbrightnesses[translen] = colorbrightnesses[translen-1]; + } if (skinnum == TC_BLINK) blendcolor = V_GetColor(skincolors[color].ramp[3]);