Mantis #2282.
Thanks tglion for the necessary info to solve an ArgumentOutOfRangeException during region start.0.6.0-stable
parent
35a23ab74f
commit
4e3a3417c7
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue