fixed nil pointer issue

This commit is contained in:
2024-10-23 15:49:39 +02:00
parent bb3b20d271
commit e185c95f84
+1 -1
View File
@@ -76,7 +76,7 @@ do
---@param unitLostListener table Object with function: OnUnitLost(initiatorUnit)
SpearheadEvents.addOnUnitLostEventListener = function(unitName, unitLostListener)
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
end