From c9d690ee25be61829e8ceb4ca676dc2bcdff3a7e Mon Sep 17 00:00:00 2001 From: SmileyAG Date: Sat, 30 Dec 2023 03:19:37 +0400 Subject: [PATCH] map_series: replaced unordered_set to vector for O(n) --- cl_dll/discord_integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/discord_integration.cpp b/cl_dll/discord_integration.cpp index 85e152c..a3fd93e 100644 --- a/cl_dll/discord_integration.cpp +++ b/cl_dll/discord_integration.cpp @@ -30,7 +30,7 @@ namespace discord_integration // This list was specially created for a map series, let's say that "hl1_bhop_am" series have a several versions of maps (example: hl1_bhop_am_beta1), but in fact those maps are almost identical // If the beginning of map name matches with what presented in the list, then we set the same name for the thumbnail as in the list (e.g. map name: hl1_bhop_uc1_beta1, thumbnail name: hl1_bhop_uc1) - const std::unordered_set map_series { + const std::vector map_series { "hl1_bhop_am"s, "hl1_bhop_bp1"s, "hl1_bhop_bp2"s,