From e04ed72afaef8a01369cab1e8a755af49812ba62 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 4 Feb 2011 08:25:27 +0900 Subject: [PATCH] Increment the index when emitting array elements. Oops :) --- tools/qfcc/source/struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/struct.c b/tools/qfcc/source/struct.c index 5945c4185..f1cce8bb0 100644 --- a/tools/qfcc/source/struct.c +++ b/tools/qfcc/source/struct.c @@ -264,7 +264,7 @@ emit_structure (const char *name, int su, struct_def_t *defs, type_t *type, } else { if (is_array (field_def.type)) { for (j = 0; j < field_def.type->t.array.size; j++) { - defs[i].emit (&field_def, data, 0); + defs[i].emit (&field_def, data, j); field_def.offset+=type_size (field_def.type->t.array.type); } } else {