* Fixed AI_A2A_DISPATCHER going crazy

* Fixed SET to avoid when a new element is added, that the index is also incremented.
This commit is contained in:
FlightControl_Master
2017-11-30 16:04:58 +01:00
parent d2a7cc77cc
commit 76ea635b63
4 changed files with 7 additions and 5 deletions

View File

@@ -153,8 +153,10 @@ end
function SET_BASE:Add( ObjectName, Object )
self:F( ObjectName )
self.Set[ObjectName] = Object
table.insert( self.Index, ObjectName )
if not self.Set[ObjectName] then
self.Set[ObjectName] = Object
table.insert( self.Index, ObjectName )
end
end
--- Adds a @{Base#BASE} object in the @{Set#SET_BASE}, using the Object Name as the index.