- Fixed getGamesWonBy crashing when the game was a draw.

This commit is contained in:
Sloth
2012-12-10 08:38:57 +00:00
parent 668ba22e39
commit 5ce6c25084

View File

@@ -232,7 +232,7 @@ public class MatchController {
public int getGamesWonBy(LobbyPlayer questPlayer) { public int getGamesWonBy(LobbyPlayer questPlayer) {
int sum = 0; int sum = 0;
for (GameOutcome go : gamesPlayed) { for (GameOutcome go : gamesPlayed) {
if (go.getWinner().equals(questPlayer)) { if (questPlayer.equals(go.getWinner())) {
sum++; sum++;
} }
} }