Skip empty strings in ParseString* functions

viewer-2-initial-appearance
Melanie 2010-10-21 07:19:10 +01:00
parent f8a47801ee
commit 1f7577b735
1 changed files with 6 additions and 0 deletions

View File

@ -8404,6 +8404,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
for (j = 0; j < seplen; j++) for (j = 0; j < seplen; j++)
{ {
if (separray[j].ToString() == String.Empty)
active[j] = false;
if (active[j]) if (active[j])
{ {
// scan all of the markers // scan all of the markers
@ -8432,6 +8435,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
for (j = seplen; (j < mlen) && (offset[best] > beginning); j++) for (j = seplen; (j < mlen) && (offset[best] > beginning); j++)
{ {
if (spcarray[j].ToString() == String.Empty)
active[j] = false;
if (active[j]) if (active[j])
{ {
// scan all of the markers // scan all of the markers