From a7d263fa6780837a65f395fd21c2b91a0a99cb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-David=20B=C3=A9langer?= Date: Mon, 9 Mar 2020 14:12:04 -0400 Subject: [PATCH] getFullName of the container AND the item, also exclude container of char (#1515) * getFullName of the container AND the item, also exclude container of char * bit vector condition was backwards --- library/DataDefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/DataDefs.cpp b/library/DataDefs.cpp index c071ad7d3..00c44d975 100644 --- a/library/DataDefs.cpp +++ b/library/DataDefs.cpp @@ -540,7 +540,7 @@ const struct_field_info *DFHack::find_union_tag(const struct_field_info *fields, } auto union_fields = ((struct_identity*)union_field->type)->getFields(); - if (tag_container_type->getFullName(nullptr) != "vector" && + if (tag_container_type->getFullName() == "vector" && union_fields[0].mode != struct_field_info::END && union_fields[1].mode != struct_field_info::END && union_fields[2].mode == struct_field_info::END)