Mantis #1843
Applying DotNetEnine part of this patch. Thank you, nlin! Corrects ad hoc key list comparison.0.6.0-stable
parent
eee31c6f28
commit
f46fc508d1
|
@ -4385,11 +4385,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
{
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
if (src.Data[i].Equals(test.Data[0]))
|
||||
if (AreEqual(src.Data[i], test.Data[0]))
|
||||
{
|
||||
int j;
|
||||
for (j = 1; j < test.Length; j++)
|
||||
if (!src.Data[i+j].Equals(test.Data[j]))
|
||||
if (!AreEqual(src.Data[i+j], test.Data[j]))
|
||||
break;
|
||||
if (j == test.Length)
|
||||
{
|
||||
|
@ -4404,6 +4404,18 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
|
||||
}
|
||||
|
||||
private bool AreEqual(object src, object test)
|
||||
{
|
||||
if (src.GetType().FullName == "System.String")
|
||||
{
|
||||
return src.ToString() == test.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return src.Equals(test);
|
||||
}
|
||||
}
|
||||
|
||||
public string llGetObjectName()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
|
Loading…
Reference in New Issue