fix issue with iw5 weapon prefix not being removed properly

This commit is contained in:
RaidMax 2021-04-01 13:12:47 -05:00
parent 21087d6c25
commit f916c51bc0

View File

@ -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<string>();
if (filtered.Count() > 1)