diff --git a/Source/Contents/AdventureGuideMgr.cpp b/Source/Contents/AdventureGuideMgr.cpp index 3106cf6..81b7d0c 100644 --- a/Source/Contents/AdventureGuideMgr.cpp +++ b/Source/Contents/AdventureGuideMgr.cpp @@ -9,8 +9,22 @@ // GLOBAL: gl_24502 CAdventureGuideMgr* g_adventureGuideMgr; -template -static std::optional FindMapped(Map& map, const typename Map::key_type& key) { +using AdventureGuideEntryTable = std::map>; +using AdventureGuideContentsTable = std::map>; + +// OFFSET: 0x0065F680 +// FUNCTION: fn_05189 +static std::optional FindMapped(AdventureGuideEntryTable& map, const int& key) { + auto it = map.find(key); + if (it == map.end()) { + return std::nullopt; + } + return &it->second; +} + +// OFFSET: 0x0065F6D0 +// FUNCTION: fn_05190 +static std::optional FindMapped(AdventureGuideContentsTable& map, const int& key) { auto it = map.find(key); if (it == map.end()) { return std::nullopt;