summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp4
1 files changed, 2 insertions, 2 deletions
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<YAML::Node> Companion::AddAsset(YAML::Node asset) {
if(decl.has_value()) {
auto found = std::get<1>(decl.value());
- if(GetSafeNode<std::string>(found, "type") != type) {
- SPDLOG_ERROR("Asset clash detected {} vs {} at 0x{:X}", type, GetSafeNode<std::string>(found, "type"), offset);
+ if(ConvertType(GetSafeNode<std::string>(found, "type")) != ConvertType(type)) {
+ SPDLOG_ERROR("Asset clash detected {} vs {} at 0x{:X}", ConvertType(type), ConvertType(GetSafeNode<std::string>(found, "type")), offset);
} else {
return found;
}