OPS Cleanup

This commit is contained in:
Frank
2021-08-12 11:07:28 +02:00
parent 93f4b345c5
commit b21c3ed4e9
6 changed files with 92 additions and 88 deletions

View File

@@ -557,17 +557,8 @@ end
-- @param #string SquadronName Name of the squadron, e.g. "VFA-37".
-- @return Ops.Squadron#SQUADRON The squadron object.
function AIRWING:GetSquadron(SquadronName)
for _,_squadron in pairs(self.cohorts) do
local squadron=_squadron --Ops.Squadron#SQUADRON
if squadron.name==SquadronName then
return squadron
end
end
return nil
local squad=self:_GetCohort(SquadronName)
return squad
end
--- Get squadron of an asset.