Skip to content

Commit f967828

Browse files
refactor: reuse region_id
Co-authored-by: Christian Clauss <[email protected]>
1 parent 97b101e commit f967828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __init__(self, sid, slot_data):
139139
self.region_id = int(parts[0])
140140

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

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

0 commit comments

Comments
 (0)