diff --git a/opengsq/protocols/quake1.py b/opengsq/protocols/quake1.py index b604afe..f181346 100644 --- a/opengsq/protocols/quake1.py +++ b/opengsq/protocols/quake1.py @@ -82,7 +82,7 @@ def _get_player_match_collections(self, br: BinaryReader): regex = re.compile(r'"(\\"|[^"])*?"|[^\s]+') # Read all players - while not br.is_end(): + while br.remaining_bytes() > 1: match_collections.append(regex.finditer(br.read_string(self._delimiter2))) return match_collections