Skip to content

Commit

Permalink
getstatvalue takes index.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWillett committed Jan 4, 2025
1 parent 7c4c274 commit 39a486c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UncreatedWarfare/Layouts/UI/Leaderboards/LeaderboardSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public int GetStatisticIndex(string statName)

public double GetStatisticValue(string statName, CSteamID player)
{
int statIndex = GetStatisticIndex(statName);
return GetStatisticValue(GetStatisticIndex(statName), player);
}

public double GetStatisticValue(int statIndex, CSteamID player)
{
if (statIndex == -1)
return 0;

Expand Down

0 comments on commit 39a486c

Please sign in to comment.