diff options
author | Dr Scofield | 2009-04-16 14:22:53 +0000 |
---|---|---|
committer | Dr Scofield | 2009-04-16 14:22:53 +0000 |
commit | 4de3f9b597648f1938e59f4fa40791d4d88bcaee (patch) | |
tree | ae7765d8aa4874f888dfeb9a87abc6c767a8f960 /OpenSim/Region/CoreModules/World/Wind/WindModule.cs | |
parent | - turn private m_gui into protected m_gui to allow manipulation in (diff) | |
download | opensim-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/Region/CoreModules/World/Wind/WindModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Wind/WindModule.cs | 2 |
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); |