diff options
author | Melanie | 2010-10-21 07:19:10 +0100 |
---|---|---|
committer | Melanie | 2010-10-21 07:19:10 +0100 |
commit | 1f7577b7351e8176e12d7e5f58f01427385958c7 (patch) | |
tree | f88a0e9ad99a84e1b8061d55db963cf9c643b8e5 /OpenSim/Region/ScriptEngine/Shared | |
parent | Merge branch 'master' of ssh://MyConnection01/var/git/opensim (diff) | |
download | opensim-SC_OLD-1f7577b7351e8176e12d7e5f58f01427385958c7.zip opensim-SC_OLD-1f7577b7351e8176e12d7e5f58f01427385958c7.tar.gz opensim-SC_OLD-1f7577b7351e8176e12d7e5f58f01427385958c7.tar.bz2 opensim-SC_OLD-1f7577b7351e8176e12d7e5f58f01427385958c7.tar.xz |
Skip empty strings in ParseString* functions
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 6 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 8bf9482..cc6ded7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -8404,6 +8404,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8404 | 8404 | ||
8405 | for (j = 0; j < seplen; j++) | 8405 | for (j = 0; j < seplen; j++) |
8406 | { | 8406 | { |
8407 | if (separray[j].ToString() == String.Empty) | ||
8408 | active[j] = false; | ||
8409 | |||
8407 | if (active[j]) | 8410 | if (active[j]) |
8408 | { | 8411 | { |
8409 | // scan all of the markers | 8412 | // scan all of the markers |
@@ -8432,6 +8435,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8432 | { | 8435 | { |
8433 | for (j = seplen; (j < mlen) && (offset[best] > beginning); j++) | 8436 | for (j = seplen; (j < mlen) && (offset[best] > beginning); j++) |
8434 | { | 8437 | { |
8438 | if (spcarray[j].ToString() == String.Empty) | ||
8439 | active[j] = false; | ||
8440 | |||
8435 | if (active[j]) | 8441 | if (active[j]) |
8436 | { | 8442 | { |
8437 | // scan all of the markers | 8443 | // scan all of the markers |