From 62f774f2640a48aeb8d1ac538d0c1b2e58f497f5 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 10 Aug 2024 16:03:25 +0200 Subject: [PATCH] fix: not properly normalizing asset names when looking up from GlobalAssetPools --- src/ZoneCommon/Pool/GlobalAssetPool.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ZoneCommon/Pool/GlobalAssetPool.h b/src/ZoneCommon/Pool/GlobalAssetPool.h index 39aeb4ce..2a328456 100644 --- a/src/ZoneCommon/Pool/GlobalAssetPool.h +++ b/src/ZoneCommon/Pool/GlobalAssetPool.h @@ -171,7 +171,8 @@ public: static XAssetInfo* GetAssetByName(const std::string& name) { - const auto foundEntry = m_assets.find(name); + const auto normalizedName = XAssetInfo::NormalizeAssetName(name); + const auto foundEntry = m_assets.find(normalizedName); if (foundEntry == m_assets.end()) return nullptr;