This commit is contained in:
Applevangelist 2024-08-12 17:00:52 +02:00
parent a54944b021
commit 35c24810f9

View File

@ -3240,7 +3240,7 @@ end
-- @param Wrapper.Unit#UNIT Unit
-- @return #boolean Outcome
function CTLD:IsHook(Unit)
if string.find(Unit:GetTypeName(),"CH.47") then
if Unit and string.find(Unit:GetTypeName(),"CH.47") then
return true
else
return false