mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user