From 8c69f084fab962319b6af15f731fcd931bd377c1 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 22 Feb 2020 00:34:04 +0100 Subject: [PATCH] bug fix --- gamemode/engine/lib/server/sv_property.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/gamemode/engine/lib/server/sv_property.lua b/gamemode/engine/lib/server/sv_property.lua index 5d0dea8..177baf6 100644 --- a/gamemode/engine/lib/server/sv_property.lua +++ b/gamemode/engine/lib/server/sv_property.lua @@ -83,6 +83,7 @@ end function Quantum.Server.Property.PlayerSwitchLock( pl, doorent ) local zone = Quantum.Server.Zone.GetCurrentZone( pl:GetPos() ) + if( zone == nil ) then return end if( Quantum.Server.Zone.DoorIsInZone(doorent, zone.id) ) then local prop = Quantum.Server.Property.Get( zone.property ) if( prop.owner == pl || pl:IsSuperAdmin() ) then