2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

Actually implement AssetNameMap in DNAMP1

This commit is contained in:
2020-04-22 03:37:34 -07:00
parent 535717fbd8
commit 59f979db67
7 changed files with 30 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ void InitAssetNameMap() {
}
const std::string* TranslateIdToName(const UniqueID32& id) {
if (g_AssetNameMap.find(id.toUint64()) == g_AssetNameMap.end())
if (g_AssetNameMap.find(id.toUint64()) == g_AssetNameMap.cend())
return nullptr;
return &g_AssetNameMap[id.toUint64()].name;