diff --git a/tools/qfcc/source/pr_def.c b/tools/qfcc/source/pr_def.c index aa65cf95a..9ab679b65 100644 --- a/tools/qfcc/source/pr_def.c +++ b/tools/qfcc/source/pr_def.c @@ -169,6 +169,9 @@ PR_GetDef (type_t *type, const char *name, def_t *scope, int *allocate) d = PR_GetDef (&type_floatfield, element, scope, allocate); d->used = 1; // always `used' d->parent = def; + } else if (type->aux_type->type == ev_pointer) { + pr.size_fields += type->aux_type->num_parms + * pr_type_size[type->aux_type->aux_type->type]; } else { pr.size_fields += pr_type_size[type->aux_type->type]; } diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index 3b4995b52..34e170b3b 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -267,6 +267,7 @@ WriteData (int crc) printf ("%6i locals size (%s)\n", num_localdefs, big_function); printf ("%6i fielddefs\n", numfielddefs); printf ("%6i pr_globals\n", numpr_globals); + printf ("%6i entityfields\n", pr.size_fields); } h = SafeOpenWrite (destfile);