2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-29 07:41:53 +00:00

Make key handler map a multimap to be able to support multiple handlers for the same key

This commit is contained in:
Jan
2023-08-23 23:07:55 +02:00
parent fc57032937
commit ccc020ca7e
4 changed files with 4 additions and 4 deletions

View File

@ -661,7 +661,7 @@ namespace IW4
return outputSet;
}
_NODISCARD ItemKeyHandler* ConvertKeyHandler(const std::map<int, std::unique_ptr<CommonEventHandlerSet>>& keyHandlers, const CommonMenuDef* menu, const CommonItemDef* item = nullptr) const
_NODISCARD ItemKeyHandler* ConvertKeyHandler(const std::multimap<int, std::unique_ptr<CommonEventHandlerSet>>& keyHandlers, const CommonMenuDef* menu, const CommonItemDef* item = nullptr) const
{
if (keyHandlers.empty())
return nullptr;