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 {