We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cef03e commit ee0fc50Copy full SHA for ee0fc50
sc2reader/events/tracker.py
@@ -360,11 +360,10 @@ def load_context(self, replay):
360
print "Unit owner changed before it was born!"
361
362
if self.unit_upkeeper:
363
- if unit.owner:
364
- print "stduff"
365
- unit.owner.units.remove(unit)
366
- unit.owner = self.unit_upkeeper
367
- self.unit_upkeeper.units.append(unit)
+ if self.unit.owner:
+ self.unit.owner.units.remove(self.unit)
+ self.unit.owner = self.unit_upkeeper
+ self.unit_upkeeper.units.append(self.unit)
368
369
def __str__(self):
370
return self._str_prefix()+"{0: >15} took {1}".format(self.unit_upkeeper, self.unit)
0 commit comments