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

This commit is contained in:
Jan committed 2023-08-23 23:07:55 +02:00
1 parent fc57032937
commit ccc020ca7e
4 files changed
+4 -4

No files matched your search

@@ -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;