mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
[FIXED] attempt to index a nil value (AWACS:_CheckAwacsStatus -> OPSGROUP:GetCallsignName -> GROUP:IsPlayer)
This commit is contained in:
parent
d06e44d37b
commit
74520b1359
@ -757,7 +757,11 @@ end
|
|||||||
-- @param #GROUP self
|
-- @param #GROUP self
|
||||||
-- @return #boolean If true, group is associated with a client or player slot.
|
-- @return #boolean If true, group is associated with a client or player slot.
|
||||||
function GROUP:IsPlayer()
|
function GROUP:IsPlayer()
|
||||||
return self:GetUnit(1):IsPlayer()
|
local unit = self:GetUnit(1)
|
||||||
|
if unit then
|
||||||
|
return unit:IsPlayer()
|
||||||
|
end
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Returns the UNIT wrapper object with number UnitNumber. If it doesn't exist, tries to return the next available unit.
|
--- Returns the UNIT wrapper object with number UnitNumber. If it doesn't exist, tries to return the next available unit.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user