mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +00:00
allocate defs using the correct size from the type
This commit is contained in:
parent
381bdb2323
commit
ccf2a0b34a
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ PR_NewDef (type_t *type, const char *name, def_t *scope)
|
|||
int
|
||||
PR_NewLocation (type_t *type)
|
||||
{
|
||||
int size = pr_type_size[type->type];
|
||||
int size = type_size (type);
|
||||
locref_t *loc;
|
||||
|
||||
if (free_locs[size]) {
|
||||
|
|
Loading…
Reference in a new issue