mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-26 14:55:24 +00:00
ZONE_BASE/RADIUS not registering in the DB
if not _DATABASE:FindZone(ZoneName) then _EVENTDISPATCHER:CreateEventNewZone(self) end -- problem when creating zones on the fly and trying to find them with :FindByName() laters
This commit is contained in:
@@ -143,6 +143,9 @@ function ZONE_BASE:New( ZoneName )
|
|||||||
|
|
||||||
self.ZoneName = ZoneName
|
self.ZoneName = ZoneName
|
||||||
|
|
||||||
|
if not _DATABASE:FindZone(ZoneName) then
|
||||||
|
_EVENTDISPATCHER:CreateEventNewZone(self)
|
||||||
|
end
|
||||||
--_DATABASE:AddZone(ZoneName,self)
|
--_DATABASE:AddZone(ZoneName,self)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|||||||
Reference in New Issue
Block a user