summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorDan Killinger <git@dank.anonaddy.com>2023-06-13 16:27:36 -0700
committerPeter LaFosse <peter@vector35.com>2023-06-19 09:28:00 -0400
commit947d7e81ef1f0d50d3080b57f89db65625638b3b (patch)
tree20c28286c5b5630b8ae6bcc0e7cafddf4eab533d /type.cpp
parent636ec26b02ccb3ecacaf168f7f492f0a867ab999 (diff)
Allow constructing BaseStructure from NamedTypeReference type
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/type.cpp b/type.cpp
index 50766dc8..5b5811cd 100644
--- a/type.cpp
+++ b/type.cpp
@@ -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();
}