mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 23:05:32 -04:00
Fix #7581
This commit is contained in:
1 parent
d688713355
commit
b5deedf69f
1 file changed
+4
@@ -3963,6 +3963,10 @@ gb_internal Selection lookup_field_with_selection(Type *type_, InternedString fi
|
||||
bool is_soa_of_array = is_soa && is_type_array(type->Struct.soa_elem);
|
||||
|
||||
if (is_soa_of_array) {
|
||||
if (sel.entity == nullptr) {
|
||||
return sel;
|
||||
}
|
||||
|
||||
InternedString mapped_field_name = {};
|
||||
String n = field_name.string();
|
||||
if (n == "r") mapped_field_name = string_interner_insert(str_lit("x"));
|
||||
|
||||
Reference in new issue
Block a user