mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed getGamesWonBy crashing when the game was a draw.
This commit is contained in:
@@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user