Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip updating the owner on an event with no unit
  • Loading branch information
StoicLoofah committed Oct 26, 2020
commit 4c577d6ab9022fe2872e700b49f03fa6ebac46f9
2 changes: 1 addition & 1 deletion sc2reader/engine/plugins/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def handleUnitOwnerChangeEvent(self, event, replay):
)
)

if event.unit_upkeeper:
if event.unit_upkeeper and event.unit:
if event.unit.owner:
event.unit.owner.units.remove(event.unit)
event.unit.owner = event.unit_upkeeper
Expand Down