diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 598948a..7d5f109 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -127,7 +127,10 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
127 | else | 127 | else |
128 | Scene.RegionInfo.RegionSettings.AllowLandResell = true; | 128 | Scene.RegionInfo.RegionSettings.AllowLandResell = true; |
129 | 129 | ||
130 | Scene.RegionInfo.RegionSettings.AgentLimit = (byte) maxAgents; | 130 | if((byte)maxAgents <= Scene.RegionInfo.AgentCapacity) |
131 | Scene.RegionInfo.RegionSettings.AgentLimit = (byte) maxAgents; | ||
132 | else | ||
133 | Scene.RegionInfo.RegionSettings.AgentLimit = Scene.RegionInfo.AgentCapacity; | ||
131 | 134 | ||
132 | Scene.RegionInfo.RegionSettings.ObjectBonus = objectBonusFactor; | 135 | Scene.RegionInfo.RegionSettings.ObjectBonus = objectBonusFactor; |
133 | 136 | ||