diff options
| author | Dan Killinger <git@dank.anonaddy.com> | 2023-06-13 16:27:36 -0700 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-06-19 09:28:00 -0400 |
| commit | 947d7e81ef1f0d50d3080b57f89db65625638b3b (patch) | |
| tree | 20c28286c5b5630b8ae6bcc0e7cafddf4eab533d /type.cpp | |
| parent | 636ec26b02ccb3ecacaf168f7f492f0a867ab999 (diff) | |
Allow constructing BaseStructure from NamedTypeReference type
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -517,7 +517,7 @@ BaseStructure::BaseStructure(NamedTypeReference* _type, uint64_t _offset, uint64 BaseStructure::BaseStructure(Type* _type, uint64_t _offset) { - type = _type->GetRegisteredName(); + type = _type->IsNamedTypeRefer() ? _type->GetNamedTypeReference() : _type->GetRegisteredName(); offset = _offset; width = _type->GetWidth(); } |
