From 9449a38a0b594dc0557cf61a5a09ec286b66113e Mon Sep 17 00:00:00 2001 From: coco875 Date: Tue, 8 Jul 2025 23:04:47 +0200 Subject: second fix of type --- src/Companion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Companion.cpp') diff --git a/src/Companion.cpp b/src/Companion.cpp index 515b17c..76b7ed2 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1584,8 +1584,8 @@ std::optional Companion::AddAsset(YAML::Node asset) { if(decl.has_value()) { auto found = std::get<1>(decl.value()); - if(GetSafeNode(found, "type") != type) { - SPDLOG_ERROR("Asset clash detected {} vs {} at 0x{:X}", type, GetSafeNode(found, "type"), offset); + if(ConvertType(GetSafeNode(found, "type")) != ConvertType(type)) { + SPDLOG_ERROR("Asset clash detected {} vs {} at 0x{:X}", ConvertType(type), ConvertType(GetSafeNode(found, "type")), offset); } else { return found; } -- cgit v1.2.3