-- Fix issue SET_AIRBASE does not update #817.

This commit is contained in:
FlightControl_Master 2018-03-27 15:10:14 +02:00
parent e22e7f2c58
commit 747777b297

View File

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