From f916c51bc0e9e302d029f0b2f07d6e6915fc7922 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 1 Apr 2021 13:12:47 -0500 Subject: [PATCH] fix issue with iw5 weapon prefix not being removed properly --- Plugins/Stats/Client/WeaponNameParser.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/Stats/Client/WeaponNameParser.cs b/Plugins/Stats/Client/WeaponNameParser.cs index 9d2f92dea..d65f0a432 100644 --- a/Plugins/Stats/Client/WeaponNameParser.cs +++ b/Plugins/Stats/Client/WeaponNameParser.cs @@ -49,8 +49,9 @@ namespace Stats.Client // remove the _mp suffix var filtered = splitWeaponName - .Where(part => part != configForGame.WeaponSuffix && part != configForGame.WeaponPrefix); - var baseName = splitWeaponName.First(); + .Where(part => part != configForGame.WeaponSuffix && part != configForGame.WeaponPrefix) + .ToList(); + var baseName = filtered.First(); var attachments = new List(); if (filtered.Count() > 1)