mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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) {
|
||||
int sum = 0;
|
||||
for (GameOutcome go : gamesPlayed) {
|
||||
if (go.getWinner().equals(questPlayer)) {
|
||||
if (questPlayer.equals(go.getWinner())) {
|
||||
sum++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user