HWR_CreateBlendedTexture: Do not operate on colorbrightnesses outside of TC_RAINBOW

This array is uninitialised when that is not being operated upon, and the valid context was only one bracket away, so shift it over
This commit is contained in:
toaster 2025-05-18 15:50:34 +01:00
parent 67ff68f7a3
commit 471e11f4b5

View file

@ -826,10 +826,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]);