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; }