mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update CTLD.lua
Getting rid of this error, bad argument #1 to 'find' (string expected, got nil)
This commit is contained in:
parent
8042e8bfaf
commit
1547d66327
@ -3564,7 +3564,7 @@ end
|
||||
function CTLD:IsFixedWing(Unit)
|
||||
local typename = Unit:GetTypeName() or "none"
|
||||
for _,_name in pairs(self.FixedWingTypes or {}) do
|
||||
if typename == _name or string.find(typename,_name,1,true) then
|
||||
if _name and (typename==_name or string.find(typename,_name,1,true))then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user