aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 461b473..0839ab4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1741,8 +1741,13 @@ 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 return false; 1745 if(o is int) {
1746 return value == (int)o;
1747 } else {
1748 return false;
1749 }
1750 }
1746 return value == ((LSLInteger)o).value; 1751 return value == ((LSLInteger)o).value;
1747 } 1752 }
1748 1753