mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
trying to fix an error
This commit is contained in:
parent
1c9644bee7
commit
8b556f1dce
@ -45,7 +45,7 @@ end
|
||||
function DESTROYBASETASK:EventDead( event )
|
||||
self:T( { 'EventDead', event } )
|
||||
|
||||
if event.initiator then
|
||||
if event.initiator and Object.getCategory(event.initiator) == Object.Category.UNIT then
|
||||
local DestroyUnit = event.initiator
|
||||
local DestroyUnitName = DestroyUnit:getName()
|
||||
local DestroyGroup = Unit.getGroup( DestroyUnit )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user