diff --git a/PlayerList.java b/PlayerList.java index c33e2ee..760689b 100644 --- a/PlayerList.java +++ b/PlayerList.java @@ -41,7 +41,7 @@ public class PlayerList { public PlayerList getPlayersGoalsAbove(int num) { PlayerList newList = new PlayerList(); - for (HockeyPlayer p : PlayerList) { + for (HockeyPlayer p : pList) { if (p.getGoals() > num) { newList.addPlayer(p); }