Skip to content

Commit

Permalink
refactor: reuse region_id
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
NumberPigeon and cclauss authored Aug 30, 2023
1 parent 97b101e commit f967828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc2reader/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, sid, slot_data):
self.region_id = int(parts[0])

#: The Battle.net region the entity is registered to
self.region = GATEWAY_LOOKUP[int(parts[0])]
self.region = GATEWAY_LOOKUP[self.region_id]

#: The Battle.net subregion the entity is registered to
self.subregion = int(parts[2])
Expand Down

0 comments on commit f967828

Please sign in to comment.