From 40bb181c7822abe9025d47f0dc6c520fc566a73b Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Wed, 4 May 2022 13:29:40 +0200 Subject: [PATCH] Another nil check... --- Moose Development/Moose/Core/Zone.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Moose Development/Moose/Core/Zone.lua b/Moose Development/Moose/Core/Zone.lua index 5d88d833e..80c94bdf0 100644 --- a/Moose Development/Moose/Core/Zone.lua +++ b/Moose Development/Moose/Core/Zone.lua @@ -174,6 +174,7 @@ end -- @param DCS#Vec3 Vec3 The point to test. -- @return #boolean true if the Vec3 is within the zone. function ZONE_BASE:IsVec3InZone( Vec3 ) + if not Vec3 then return false end local InZone = self:IsVec2InZone( { x = Vec3.x, y = Vec3.z } ) return InZone end