Skip to content

Commit e73b9a3

Browse files
committed
Fixed _MuteManager._get_receivers() raising an error on a full server
1 parent 09782fc commit e73b9a3

File tree

1 file changed

+1
-1
lines changed
  • addons/source-python/packages/source-python/players

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _get_receivers(self, receivers):
5555

5656
# Check if "receivers" contains valid player indexes
5757
if not all(map(lambda index: (isinstance(
58-
index, int) and 0 < index < global_vars.max_clients),
58+
index, int) and 0 < index <= global_vars.max_clients),
5959
receivers)):
6060
raise ValueError(
6161
'"receivers" doesn\'t contain valid player indexes.')

0 commit comments

Comments
 (0)