Iterate over correct Faction for balance.

This commit is contained in:
drtshock 2015-01-23 09:17:16 -06:00
parent 3e6bd4e88a
commit 0c2253ef73

View File

@ -110,7 +110,7 @@ public class CmdTop extends FCommand {
f1Size = f1Size + Econ.getBalance(fp.getAccountId()); f1Size = f1Size + Econ.getBalance(fp.getAccountId());
} }
double f2Size = Econ.getBalance(f2.getAccountId()); double f2Size = Econ.getBalance(f2.getAccountId());
for(FPlayer fp : f1.getFPlayers()) { for(FPlayer fp : f2.getFPlayers()) {
f2Size = f2Size + Econ.getBalance(fp.getAccountId()); f2Size = f2Size + Econ.getBalance(fp.getAccountId());
} }
if (f1Size < f2Size) { if (f1Size < f2Size) {