From 947d7e81ef1f0d50d3080b57f89db65625638b3b Mon Sep 17 00:00:00 2001 From: Dan Killinger Date: Tue, 13 Jun 2023 16:27:36 -0700 Subject: Allow constructing BaseStructure from NamedTypeReference type --- type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type.cpp') 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(); } -- cgit v1.3.1