From 7a25283beb32906d5eaaa1ecf4d2a9bd3163864f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Nov 2012 20:33:52 +0900 Subject: [PATCH] Clear out the type encoding def from all types. The encodings of static types were getting corrupted because their defs were not necessarily in the same places between compilations when compiling multiple files. --- tools/qfcc/source/qfcc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index 48e779cd1..3180f485e 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -124,6 +124,10 @@ static void InitData (void) { pr_lineno_t *line; + type_t *type; + + for (type = pr.types; type; type = type->next) + type->type_def = 0; if (pr.code) { codespace_delete (pr.code);