1
0
forked from 0ad/0ad

Fix team population in summary graphs.

Introduced in 57d0e7bd96, missed in 9145e03bf5.

Differential revision: D3519
This was SVN commit r24832.
This commit is contained in:
Freagarach 2021-02-04 17:40:47 +00:00
parent 5d96346ac5
commit 6dba34e915

View File

@ -360,7 +360,7 @@ function calculateMiscellaneousTeam(team, index, type, counters, headings)
if (type == "killDeath")
return calculateRatio(g_TeamHelperData[team].enemyUnitsKilled[index], g_TeamHelperData[team].unitsLost[index]);
if (type == "bribes")
if (type == "bribes" || type == "population")
return summaryArraySum(getPlayerValuesPerTeam(team, index, type, counters, headings));
return { "percent": g_TeamHelperData[team][type][index] };