aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 0839ab4..e0a4014 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1741,13 +1741,18 @@ namespace OpenSim.Region.ScriptEngine.Shared
1741 1741
1742 public override bool Equals(Object o) 1742 public override bool Equals(Object o)
1743 { 1743 {
1744 if (!(o is LSLInteger)) { 1744 if (!(o is LSLInteger))
1745 if(o is int) { 1745 {
1746 if (o is int)
1747 {
1746 return value == (int)o; 1748 return value == (int)o;
1747 } else { 1749 }
1750 else
1751 {
1748 return false; 1752 return false;
1749 } 1753 }
1750 } 1754 }
1755
1751 return value == ((LSLInteger)o).value; 1756 return value == ((LSLInteger)o).value;
1752 } 1757 }
1753 1758