mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
oops, failed to notice that relocs on temp defs weren't being done correctly
memset wasn't such a good idea :P
This commit is contained in:
parent
cfa47717c6
commit
da36feff7f
1 changed files with 1 additions and 1 deletions
|
@ -252,13 +252,13 @@ PR_GetTempDef (type_t *type, def_t *scope)
|
|||
if (free_temps[size]) {
|
||||
def = free_temps[size];
|
||||
free_temps[size] = def->next;
|
||||
memset (def, 0, sizeof (def_t));
|
||||
def->type = type;
|
||||
} else {
|
||||
def = PR_NewDef (type, 0, scope);
|
||||
def->ofs = *scope->alloc;
|
||||
*scope->alloc += pr_type_size[size];
|
||||
}
|
||||
def->freed = def->removed = def->users = 0;
|
||||
def->next = temp_scope.next;
|
||||
temp_scope.next = def;
|
||||
return def;
|
||||
|
|
Loading…
Reference in a new issue