minor: reuse colon index calculation in XEngine.OnRezScript. The index if a colon is found on the first line will always be the same as for the whole script.
parent
9ccf56eaae
commit
c6fa09c3af
|
@ -773,7 +773,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
if (names.Contains(engineName))
|
if (names.Contains(engineName))
|
||||||
{
|
{
|
||||||
engine = engineName;
|
engine = engineName;
|
||||||
script = "//" + script.Substring(script.IndexOf(':')+1);
|
script = "//" + script.Substring(colon + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue