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