2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-01 08:41:52 +00:00

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

View File

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