Properly clear the color values

This commit is contained in:
smallmodel 2024-06-07 19:57:14 +02:00
parent 884a76db4c
commit db7ae4ffef
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -59,7 +59,7 @@ qboolean CG_LightStyleColor(int style, int realtime, vec4_t color, qboolean clam
time = realtime / 50;
frac = (realtime - (time * 50.0f)) / 50.0f;
memset(color, 0, sizeof(color));
VectorClear4(color);
if ((style < 0) || (style >= (MAX_LIGHTSTYLES * 2))) {
cgi.DPrintf("CG_LightStyleColor: style out of range.\n");
return qtrue;