diff options
| author | coco875 <pereira.jannin@gmail.com> | 2025-07-08 23:04:47 +0200 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-07-08 20:32:34 -0600 |
| commit | 9449a38a0b594dc0557cf61a5a09ec286b66113e (patch) | |
| tree | a3ca049ff8fc2ec0446f8689678afd563a7b987e /src/Companion.cpp | |
| parent | 783f2d55af1953d4cfb6dbfe82a6c6f4ac6c4016 (diff) | |
second fix of type
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 4 |
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; } |
