Merge pull request #111 from Laupetin/fix/indirect-asset-reference-non-lowercase

fix: indirect asset references may not be fully lower case
This commit is contained in:
Jan 2024-02-08 23:12:53 +01:00 committed by GitHub
commit bab0329364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,7 @@
#include "XAssetInfo.h" #include "XAssetInfo.h"
#include "Utils/StringUtils.h"
IndirectAssetReference::IndirectAssetReference() IndirectAssetReference::IndirectAssetReference()
: m_type(-1) : m_type(-1)
{ {
@ -9,6 +11,7 @@ IndirectAssetReference::IndirectAssetReference(const asset_type_t type, std::str
: m_type(type), : m_type(type),
m_name(std::move(name)) m_name(std::move(name))
{ {
utils::MakeStringLowerCase(m_name);
} }
bool operator==(const IndirectAssetReference& lhs, const IndirectAssetReference& rhs) bool operator==(const IndirectAssetReference& lhs, const IndirectAssetReference& rhs)