aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
index 6e28eba..1945ff2 100644
--- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
+++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs
@@ -30,6 +30,7 @@ using System.Collections.Generic;
30using System.Reflection; 30using System.Reflection;
31using System.Threading; 31using System.Threading;
32using log4net; 32using log4net;
33using OpenMetaverse;
33using OpenSim.Framework; 34using OpenSim.Framework;
34using OpenSim.Framework.RegionLoader.Filesystem; 35using OpenSim.Framework.RegionLoader.Filesystem;
35using OpenSim.Framework.RegionLoader.Web; 36using OpenSim.Framework.RegionLoader.Web;
@@ -152,9 +153,20 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
152 /// <returns>True if we're sane, false if we're insane</returns> 153 /// <returns>True if we're sane, false if we're insane</returns>
153 private bool CheckRegionsForSanity(RegionInfo[] regions) 154 private bool CheckRegionsForSanity(RegionInfo[] regions)
154 { 155 {
155 if (regions.Length <= 1) 156 if (regions.Length == 0)
156 return true; 157 return true;
157 158
159 foreach (RegionInfo region in regions)
160 {
161 if (region.RegionID == UUID.Zero)
162 {
163 m_log.ErrorFormat(
164 "[LOAD REGIONS PLUGIN]: Region {0} has invalidate zero UUID <{1}>",
165 region.RegionName, region.RegionID);
166 return false;
167 }
168 }
169
158 for (int i = 0; i < regions.Length - 1; i++) 170 for (int i = 0; i < regions.Length - 1; i++)
159 { 171 {
160 for (int j = i + 1; j < regions.Length; j++) 172 for (int j = i + 1; j < regions.Length; j++)