mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +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
|
||||
|
||||
if not _DATABASE:FindZone(ZoneName) then
|
||||
_EVENTDISPATCHER:CreateEventNewZone(self)
|
||||
end
|
||||
--_DATABASE:AddZone(ZoneName,self)
|
||||
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user