mirror of
https://github.com/opensim/opensim.git
synced 2026-06-30 02:57:02 +08:00
Mantis #2282.
Thanks tglion for the necessary info to solve an ArgumentOutOfRangeException during region start.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user