diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-13 11:29:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-13 11:29:46 +0100 |
| commit | be68bf9f26122b764a43cf61369ca54c203d1df3 (patch) | |
| tree | 082246e9b7498cff898208e94afaf31e236888e8 /src/types.cpp | |
| parent | 15c309b0b84c2ae36feea4220f0ccef28587db63 (diff) | |
Only store `field_index` remove `field_src_index` (for the time being)
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 23834bfc1..8eb505287 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2432,7 +2432,7 @@ Selection lookup_field_from_index(Type *type, i64 index) { for (isize i = 0; i < max_count; i++) { Entity *f = type->Struct.fields[i]; if (f->kind == Entity_Variable) { - if (f->Variable.field_src_index == index) { + if (f->Variable.field_index == index) { auto sel_array = array_make<i32>(a, 1); sel_array[0] = cast(i32)i; return make_selection(f, sel_array, false); |