Skip to content

Commit

Permalink
Constify type_size array
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Jul 29, 2024
1 parent e9456b1 commit 31258e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Quake/pr_edict.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

extern edict_t **bbox_linked;

int type_size[8] = {
extern const int type_size[8] = {
1, // ev_void
1, // sizeof(string_t) / 4 // ev_string
1, // ev_float
Expand Down
2 changes: 1 addition & 1 deletion Quake/progs.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ int SAVE_NUM_FOR_EDICT (savedata_t *save, edict_t *e);
#define E_VECTOR(e,o) (&((float*)&e->v)[o])
#define E_STRING(e,o) (PR_GetString(*(string_t *)&((float*)&e->v)[o]))

extern int type_size[8];
extern const int type_size[8];

typedef struct builtindef_s
{
Expand Down

0 comments on commit 31258e9

Please sign in to comment.