aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 8ddd175..d4cbbce 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5846,6 +5846,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5846 public LSL_Integer llSubStringIndex(string source, string pattern) 5846 public LSL_Integer llSubStringIndex(string source, string pattern)
5847 { 5847 {
5848 m_host.AddScriptLPS(1); 5848 m_host.AddScriptLPS(1);
5849 if (string.IsNullOrEmpty(source))
5850 return -1;
5851 if (string.IsNullOrEmpty(pattern))
5852 return 0;
5849 return source.IndexOf(pattern); 5853 return source.IndexOf(pattern);
5850 } 5854 }
5851 5855