diff options
author | Melanie Thielker | 2009-01-17 18:35:40 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-01-17 18:35:40 +0000 |
commit | 96d6c6b1f312d487c5ec2f47716889a4848c9ba6 (patch) | |
tree | bf2c508f7cb9654277b54e36e31fa2d74595236d /OpenSim/Region | |
parent | * Rig up enough infrastructure to actually perform a successful 'standalone' ... (diff) | |
download | opensim-SC-96d6c6b1f312d487c5ec2f47716889a4848c9ba6.zip opensim-SC-96d6c6b1f312d487c5ec2f47716889a4848c9ba6.tar.gz opensim-SC-96d6c6b1f312d487c5ec2f47716889a4848c9ba6.tar.bz2 opensim-SC-96d6c6b1f312d487c5ec2f47716889a4848c9ba6.tar.xz |
Change list type to compare length instead of references.
Fixes Mantis #3002
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index da40995..2f672e8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1164,6 +1164,18 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1164 | } | 1164 | } |
1165 | } | 1165 | } |
1166 | 1166 | ||
1167 | public override bool Equals(object o) | ||
1168 | { | ||
1169 | if (!(o is list)) | ||
1170 | return false; | ||
1171 | |||
1172 | return Data.Length == ((list)o).Data.Length; | ||
1173 | } | ||
1174 | |||
1175 | public override int GetHashCode() | ||
1176 | { | ||
1177 | return Data.GetHashCode(); | ||
1178 | } | ||
1167 | } | 1179 | } |
1168 | 1180 | ||
1169 | // | 1181 | // |