mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-22 06:45:20 +00:00
trying to fix an error
This commit is contained in:
@@ -45,7 +45,7 @@ end
|
|||||||
function DESTROYBASETASK:EventDead( event )
|
function DESTROYBASETASK:EventDead( event )
|
||||||
self:T( { '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 DestroyUnit = event.initiator
|
||||||
local DestroyUnitName = DestroyUnit:getName()
|
local DestroyUnitName = DestroyUnit:getName()
|
||||||
local DestroyGroup = Unit.getGroup( DestroyUnit )
|
local DestroyGroup = Unit.getGroup( DestroyUnit )
|
||||||
|
|||||||
Reference in New Issue
Block a user