Fixed zone find

This commit is contained in:
Frank
2019-05-23 21:07:47 +02:00
parent 1e1335e2ed
commit 614a1cc906
4 changed files with 69 additions and 34 deletions
+1 -12
View File
@@ -304,16 +304,6 @@ do -- Zones
self.ZONES[ZoneName] = nil
end
--- Finds an @{Zone} based on the zone name in the DATABASE.
-- @param #DATABASE self
-- @param #string ZoneName
-- @return Core.Zone#ZONE_BASE The found @{Zone}.
function DATABASE:FindZone( ZoneName )
local ZoneFound = self.ZONES[ZoneName]
return ZoneFound
end
--- Private method that registers new ZONE_BASE derived objects within the DATABASE Object.
@@ -348,7 +338,6 @@ do -- Zones
end -- zone
do -- cargo
--- Adds a Cargo based on the Cargo Name in the DATABASE.
@@ -1166,7 +1155,7 @@ function DATABASE:OnEventNewZone( EventData )
self:F2( { EventData } )
if EventData.Zone then
self:AddZone( EventData.Zone )
self:AddZone( EventData.Zone.ZoneName, EventData.Zone )
end
end