Skip to content

Commit 7da58b1

Browse files
authored
Merge pull request #177 from Andrene/upstream
Context.py event attribute fixes
2 parents c17bd35 + 310cb1d commit 7da58b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sc2reader/engine/plugins/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def handleUnitDiedEvent(self, event, replay):
198198
else:
199199
self.logger.error(
200200
"Unable to delete unit index {} at {} [{}], index not active.".format(
201-
event.killer_pid, Length(seconds=event.second), event.frame
201+
event.unit_id_index, Length(seconds=event.second), event.frame
202202
)
203203
)
204204
else:
@@ -307,7 +307,7 @@ def handleUnitDoneEvent(self, event, replay):
307307
else:
308308
self.logger.error(
309309
"Unit {} done at {} [{}] before it was started!".format(
310-
event.killer_pid, Length(seconds=event.second), event.frame
310+
event.unit_id, Length(seconds=event.second), event.frame
311311
)
312312
)
313313

@@ -323,7 +323,7 @@ def handleUnitPositionsEvent(self, event, replay):
323323
else:
324324
self.logger.error(
325325
"Unit at active_unit index {} moved at {} [{}] but it doesn't exist!".format(
326-
event.killer_pid, Length(seconds=event.second), event.frame
326+
unit_index, Length(seconds=event.second), event.frame
327327
)
328328
)
329329

0 commit comments

Comments
 (0)