summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}