mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 09:22:43 +00:00
Do not try to emit anything when there are no selector references.
This commit is contained in:
parent
da14c95bb8
commit
9b52c590f8
1 changed files with 6 additions and 2 deletions
|
@ -1009,7 +1009,9 @@ emit_symtab_ref_cnt (def_t *def, void *data, int index)
|
|||
|
||||
if (def->type != &type_integer)
|
||||
internal_error (0, "%s: expected integer def", __FUNCTION__);
|
||||
D_INT (def) = da->refs->type->t.array.size;
|
||||
D_INT (def) = 0;
|
||||
if (da->refs)
|
||||
D_INT (def) = da->refs->type->t.array.size;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1019,7 +1021,9 @@ emit_symtab_refs (def_t *def, void *data, int index)
|
|||
|
||||
if (def->type != &type_SEL)
|
||||
internal_error (0, "%s: expected SEL def", __FUNCTION__);
|
||||
EMIT_DEF (def->space, def->offset, da->refs);
|
||||
D_INT (def) = 0;
|
||||
if (da->refs)
|
||||
EMIT_DEF (def->space, def->offset, da->refs);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue