Skip to content

Commit 45e9286

Browse files
committed
Minor fixes to the Map resource construction.
1 parent 9d175cf commit 45e9286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sc2reader/resources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,13 @@ def __init__(self, map_file, filename=None, gateway=None, map_hash=None, **optio
466466
self.hash = map_hash
467467
self.gateway = gateway
468468
self.url = Map.get_url(gateway, map_hash)
469-
self.archive = MPQArchive(StringIO(self.file))
469+
self.archive = MPQArchive(StringIO(map_file))
470470
self.minimap = self.archive.read_file('Minimap.tga')
471471

472472
@classmethod
473-
def get_url(gateway, map_hash):
473+
def get_url(cls, gateway, map_hash):
474474
if gateway and map_hash:
475-
return Map.url_template.format(gateway, map_hash)
475+
return cls.url_template.format(gateway, map_hash)
476476
else:
477477
return None
478478

0 commit comments

Comments
 (0)