aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDr Scofield2009-04-16 14:22:53 +0000
committerDr Scofield2009-04-16 14:22:53 +0000
commit4de3f9b597648f1938e59f4fa40791d4d88bcaee (patch)
treeae7765d8aa4874f888dfeb9a87abc6c767a8f960 /OpenSim
parent- turn private m_gui into protected m_gui to allow manipulation in (diff)
downloadopensim-SC_OLD-4de3f9b597648f1938e59f4fa40791d4d88bcaee.zip
opensim-SC_OLD-4de3f9b597648f1938e59f4fa40791d4d88bcaee.tar.gz
opensim-SC_OLD-4de3f9b597648f1938e59f4fa40791d4d88bcaee.tar.bz2
opensim-SC_OLD-4de3f9b597648f1938e59f4fa40791d4d88bcaee.tar.xz
trying to fix exception in Random.Next() probably caused through sharing of
WindModule plugins --- manifesting itself through: 2009-04-16 15:32:02,764 [Heartbeat for region sea 3] [Scene]: Failed with exception System.IndexOutOfRangeException: Array index is out of range. at System.Random.Sample () [0x0003e] in /usr/local/src/mono/build/mono-2.0.1/mcs/class/corlib/System/Random.cs:91 at System.Random.NextDouble () [0x00000] in /usr/local/src/mono/build/mono-2.0.1/mcs/class/corlib/System/Random.cs:142 at OpenSim.Region.CoreModules.World.Wind.Plugins.SimpleRandomWind.WindUpdate (UInt32 frame) [0x00019] in /tmp/opensim-deploy-oTyFP12501/opensim-deploy/OpenSim/Region/CoreModules/World/Wind/Plugins/SimpleRandomWind.cs:92
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Wind/WindModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
index a8c9ac5..33274ec 100644
--- a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
+++ b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
@@ -88,7 +88,7 @@ namespace OpenSim.Region.CoreModules
88 m_frame = 0; 88 m_frame = 0;
89 89
90 // Register all the Wind Model Plug-ins 90 // Register all the Wind Model Plug-ins
91 foreach (IWindModelPlugin windPlugin in AddinManager.GetExtensionObjects("/OpenSim/WindModule")) 91 foreach (IWindModelPlugin windPlugin in AddinManager.GetExtensionObjects("/OpenSim/WindModule", false))
92 { 92 {
93 m_log.InfoFormat("[WIND] Found Plugin: {0}", windPlugin.Name); 93 m_log.InfoFormat("[WIND] Found Plugin: {0}", windPlugin.Name);
94 m_availableWindPlugins.Add(windPlugin.Name, windPlugin); 94 m_availableWindPlugins.Add(windPlugin.Name, windPlugin);