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

@ -663,7 +663,7 @@ namespace IW5
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;