diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 1833d5c..47f04d5 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -342,7 +342,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
342 | 342 | ||
343 | int lineEnd = script.IndexOf('\n'); | 343 | int lineEnd = script.IndexOf('\n'); |
344 | 344 | ||
345 | if (lineEnd != 1) | 345 | if (lineEnd > 1) |
346 | { | 346 | { |
347 | string firstline = script.Substring(0, lineEnd).Trim(); | 347 | string firstline = script.Substring(0, lineEnd).Trim(); |
348 | 348 | ||