Merge branch 'master' into develop

This commit is contained in:
Applevangelist 2024-08-12 17:01:13 +02:00
commit bb865aef38

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