From d8a38ae64825c9da76169963e84af844c99938d4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 19 Sep 2002 06:01:06 +0000 Subject: [PATCH] don't fuss with function defs that aren't initialized --- tools/qfcc/source/linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/linker.c b/tools/qfcc/source/linker.c index cdee3f561..622e7a75b 100644 --- a/tools/qfcc/source/linker.c +++ b/tools/qfcc/source/linker.c @@ -484,7 +484,7 @@ move_def (hashtab_t *deftab, qfo_def_t *d) relocs.relocs[d->relocs + j].type = rel_none; final_relocs.relocs[def->relocs + j].def = def_num; } - if (d->basic_type == ev_func) { + if ((d->flags & QFOD_CONSTANT) && d->basic_type == ev_func) { qfo_func_t *func; func = funcs.funcs + DATA (d->ofs)->func_var - 1; func->def = def_num;