CTLD small fix

This commit is contained in:
Applevangelist 2024-08-12 16:58:42 +02:00
parent 459ee72426
commit 402e72f728

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