Finish SET_AIRBASE_does_not_update_#817

This commit is contained in:
FlightControl_Master 2018-03-27 15:10:54 +02:00
commit cf6b7365af

View File

@ -152,11 +152,8 @@ function SET_BASE:Remove( ObjectName )
local Object = self.Set[ObjectName]
self:F( { ObjectName, Object } )
if Object then
for Index, Key in ipairs( self.Index ) do
self:F( { Index = Index, Key = Key } )
if Key == ObjectName then
table.remove( self.Index, Index )
self.Set[ObjectName] = nil