ref: set hullcolor (used by r_drawentities) as const

This commit is contained in:
Alibek Omarov 2024-10-14 04:15:48 +03:00
parent 4ec6c2f7cf
commit 9d3210259c
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ typedef struct
// never gonna change, just shut up const warning
cvar_t r_shadows = { (char *)"r_shadows", (char *)"0", 0 };
static vec3_t hullcolor[8] =
static const vec3_t hullcolor[8] =
{
{ 1.0f, 1.0f, 1.0f },
{ 1.0f, 0.5f, 0.5f },

View File

@ -34,7 +34,7 @@ typedef struct
cvar_t r_shadows = { (char *)"r_shadows", (char *)"0", 0 };
static vec3_t hullcolor[8] =
static const vec3_t hullcolor[8] =
{
{ 1.0f, 1.0f, 1.0f },
{ 1.0f, 0.5f, 0.5f },