mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-07 15:33:24 +00:00
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:
parent
67ff68f7a3
commit
471e11f4b5
1 changed files with 1 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue