aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine
diff options
context:
space:
mode:
authorHomer Horwitz2008-10-02 22:57:07 +0000
committerHomer Horwitz2008-10-02 22:57:07 +0000
commit4e3a3417c7d63dde241bf2400f2f24e1ea48bba3 (patch)
tree2842a7815cd0e35811fcfdfadb46ec4fcc5d4654 /OpenSim/Region/ScriptEngine/DotNetEngine
parentAdded the first version of the MapSearchModule, which allows you to search for (diff)
downloadopensim-SC_OLD-4e3a3417c7d63dde241bf2400f2f24e1ea48bba3.zip
opensim-SC_OLD-4e3a3417c7d63dde241bf2400f2f24e1ea48bba3.tar.gz
opensim-SC_OLD-4e3a3417c7d63dde241bf2400f2f24e1ea48bba3.tar.bz2
opensim-SC_OLD-4e3a3417c7d63dde241bf2400f2f24e1ea48bba3.tar.xz
Mantis #2282.
Thanks tglion for the necessary info to solve an ArgumentOutOfRangeException during region start.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
index 3934340..ef5f83d 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs
@@ -244,7 +244,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
244 244
245 int lineEnd = script.IndexOf('\n'); 245 int lineEnd = script.IndexOf('\n');
246 246
247 if (lineEnd != 1) 247 if (lineEnd != -1)
248 { 248 {
249 string firstline = script.Substring(0, lineEnd).Trim(); 249 string firstline = script.Substring(0, lineEnd).Trim();
250 250