mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Increment the index when emitting array elements.
Oops :)
This commit is contained in:
parent
d7853682af
commit
e04ed72afa
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue