diff options
Diffstat (limited to '042name.cc')
-rw-r--r-- | 042name.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/042name.cc b/042name.cc index 6b6d2a74..1fc2f201 100644 --- a/042name.cc +++ b/042name.cc @@ -121,7 +121,9 @@ type_ordinal skip_addresses(type_tree* type) { while (type && is_compound_type_starting_with(type, "address")) type = type->right; if (!type) return -1; // error handled elsewhere - return root_type(type)->value; + const type_tree* base_type = type; + // Update base_type in skip_addresses + return base_type->value; } int find_element_name(const type_ordinal t, const string& name, const string& recipe_name) { |