fixed nil pointer issue
This commit is contained in:
@@ -76,7 +76,7 @@ do
|
|||||||
---@param unitLostListener table Object with function: OnUnitLost(initiatorUnit)
|
---@param unitLostListener table Object with function: OnUnitLost(initiatorUnit)
|
||||||
SpearheadEvents.addOnUnitLostEventListener = function(unitName, unitLostListener)
|
SpearheadEvents.addOnUnitLostEventListener = function(unitName, unitLostListener)
|
||||||
if type(unitLostListener) ~= "table" then
|
if type(unitLostListener) ~= "table" then
|
||||||
SpearheadLogger:warn("Unit lost Event listener not of type table/object")
|
warn("Unit lost Event listener not of type table/object")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user