From 4e3a3417c7d63dde241bf2400f2f24e1ea48bba3 Mon Sep 17 00:00:00 2001
From: Homer Horwitz
Date: Thu, 2 Oct 2008 22:57:07 +0000
Subject: Mantis #2282. Thanks tglion for the necessary info to solve an
 ArgumentOutOfRangeException during region start.

---
 OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'OpenSim')

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
 
             int lineEnd = script.IndexOf('\n');
 
-            if (lineEnd != 1)
+            if (lineEnd != -1)
             {
                 string firstline = script.Substring(0, lineEnd).Trim();
 
-- 
cgit v1.1