This commit is contained in:
Applevangelist 2023-08-01 11:38:02 +02:00
parent 090de85388
commit 9a9ac6f2e1
2 changed files with 4 additions and 3 deletions

View File

@ -7621,7 +7621,7 @@ do -- SET_SCENERY
--- Add SCENERY(s) to SET_SCENERY. --- Add SCENERY(s) to SET_SCENERY.
-- @param #SET_SCENERY self -- @param #SET_SCENERY self
-- @param #string AddScenery A single SCENERY. -- @param Wrapper.Scenery#SCENERY AddScenery A single SCENERY object.
-- @return #SET_SCENERY self -- @return #SET_SCENERY self
function SET_SCENERY:AddScenery( AddScenery ) function SET_SCENERY:AddScenery( AddScenery )
self:F2( AddScenery:GetName() ) self:F2( AddScenery:GetName() )

View File

@ -175,10 +175,11 @@ end
function SCENERY:FindByZoneName( ZoneName ) function SCENERY:FindByZoneName( ZoneName )
local zone = ZoneName -- Core.Zone#ZONE local zone = ZoneName -- Core.Zone#ZONE
if type(ZoneName) == "string" then if type(ZoneName) == "string" then
zone = ZONE:FindByName(ZoneName) zone = ZONE:FindByName(ZoneName) -- Core.Zone#ZONE_BASE
end end
local _id = zone:GetProperty('OBJECT ID') local _id = zone:GetProperty('OBJECT ID')
BASE:T("Object ID ".._id) --BASE:I(string.format("Object ID is: %s",_id or "none"))
--BASE:T("Object ID ".._id)
if not _id then if not _id then
-- this zone has no object ID -- this zone has no object ID
BASE:E("**** Zone without object ID: "..ZoneName.." | Type: "..tostring(zone.ClassName)) BASE:E("**** Zone without object ID: "..ZoneName.." | Type: "..tostring(zone.ClassName))