From 0c0f4360da59878420e43c755a4d2d312fb23330 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Mar 2011 17:06:45 +0900 Subject: [PATCH] Make field defs "nosave". The engine treats fielddefs with DEF_SAVEGLOBAL set as bogus. --- tools/qfcc/source/def.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 847aad2eb..de665a934 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -355,6 +355,7 @@ init_field_def (def_t *def, expr_t *init, storage_class_t storage) if (!field_sym->s.def) { field_sym->s.def = new_def (def->name, type, pr.entity_data, storage); field_sym->s.def->relocs = relocs; + field_sym->s.def->nosave = 1; } field_def = field_sym->s.def; if (!field_sym->table)