Fix problem with CAP #677

A stupid typo was the root cause in DETECTION_BASE. The friendlies
prefixes were overwritten for the sequent squadron.
This commit is contained in:
FlightControl_Master
2017-09-05 21:47:23 +02:00
parent 2830bcb867
commit 9dc68fb665
2 changed files with 12 additions and 6 deletions

View File

@@ -1152,11 +1152,12 @@ do -- DETECTION_BASE
-- @return #DETECTION_BASE
function DETECTION_BASE:SetFriendlyPrefixes( FriendlyPrefixes )
self.FriendlyPrefixes = FriendlyPrefixes or {}
self.FriendlyPrefixes = self.FriendlyPrefixes or {}
if type( FriendlyPrefixes ) ~= "table" then
FriendlyPrefixes = { FriendlyPrefixes }
end
for PrefixID, Prefix in pairs( FriendlyPrefixes ) do
self:F( { FriendlyPrefix = Prefix } )
self.FriendlyPrefixes[Prefix] = Prefix
end
return self