1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix profile issue

This commit is contained in:
RaidMax
2022-03-24 08:40:42 -05:00
parent 4aac392d0b
commit 9e35e12560
2 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,7 @@ namespace IW4MAdmin.Plugins.Stats
double chestAbdomenRatio = 0;
double hitOffsetAverage = 0;
double averageSnapValue = 0;
var maxStrain = clientStats.Any(c => c.MaxStrain > 0) ? 0 : clientStats.Max(cs => cs.MaxStrain);
var maxStrain = !clientStats.Any(c => c.MaxStrain > 0) ? 0 : clientStats.Max(cs => cs.MaxStrain);
if (clientStats.Any(cs => cs.HitLocations.Count > 0))
{