Skip to content

Commit 4b91bb1

Browse files
committed
Fixed error in PlayerIter iteration.
1 parent ff92726 commit 4b91bb1

File tree

1 file changed

+2
-2
lines changed
  • addons/source-python/packages/source-python/filters

1 file changed

+2
-2
lines changed

addons/source-python/packages/source-python/filters/players.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def __init__(self, team):
9898
"""Store the team number for future use."""
9999
self.team = team
100100

101-
def _player_is_on_team(self, playerinfo):
101+
def _player_is_on_team(self, edict):
102102
"""Return whether the player is on the team."""
103-
return playerinfo.get_team_index() == self.team
103+
return playerinfo_from_edict(edict).get_team_index() == self.team
104104

105105

106106
# =============================================================================

0 commit comments

Comments
 (0)