diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 16d26c4bd1..295dfee79d 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -679,13 +679,13 @@ namespace OpenSim.Region.CoreModules.World.Land IClientAPI remote_client) { - if (flags == (uint) AccessList.Access || flags == (uint) AccessList.Both) + if ((flags & (uint) AccessList.Access) != 0) { List accessEntries = CreateAccessListArrayByFlag(AccessList.Access); remote_client.SendLandAccessListData(accessEntries,(uint) AccessList.Access,LandData.LocalID); } - if (flags == (uint) AccessList.Ban || flags == (uint) AccessList.Both) + if ((flags & (uint) AccessList.Ban) != 0) { List accessEntries = CreateAccessListArrayByFlag(AccessList.Ban); remote_client.SendLandAccessListData(accessEntries, (uint)AccessList.Ban, LandData.LocalID);