mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Don't set the space for external defs.
This commit is contained in:
parent
d80a3413e5
commit
afc6605739
1 changed files with 1 additions and 1 deletions
|
@ -108,9 +108,9 @@ new_def (const char *name, type_t *type, defspace_t *space,
|
||||||
|
|
||||||
def->name = name ? save_string (name) : 0;
|
def->name = name ? save_string (name) : 0;
|
||||||
def->type = type;
|
def->type = type;
|
||||||
def->space = space;
|
|
||||||
|
|
||||||
if (storage != st_extern) {
|
if (storage != st_extern) {
|
||||||
|
def->space = space;
|
||||||
*space->def_tail = def;
|
*space->def_tail = def;
|
||||||
space->def_tail = &def->next;
|
space->def_tail = &def->next;
|
||||||
def->offset = defspace_new_loc (space, type_size (type));
|
def->offset = defspace_new_loc (space, type_size (type));
|
||||||
|
|
Loading…
Reference in a new issue