aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2011-01-11 14:59:55 +0100
committerMelanie2011-01-11 14:59:55 +0100
commitd8fd777e1338d1cffb28ffddd504eb45e7a02a5c (patch)
tree360123bbdc8efc8ef507e750ec2c248ef71510bd
parentPartial permissions fix for boxed items. (diff)
downloadopensim-SC_OLD-d8fd777e1338d1cffb28ffddd504eb45e7a02a5c.zip
opensim-SC_OLD-d8fd777e1338d1cffb28ffddd504eb45e7a02a5c.tar.gz
opensim-SC_OLD-d8fd777e1338d1cffb28ffddd504eb45e7a02a5c.tar.bz2
opensim-SC_OLD-d8fd777e1338d1cffb28ffddd504eb45e7a02a5c.tar.xz
Use ToString() rather than a cast (more robust)
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 5fd5bcf..f810fd8 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -560,7 +560,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
560 else if (m_data[itemIndex] is Int32) 560 else if (m_data[itemIndex] is Int32)
561 return new LSLInteger((int)m_data[itemIndex]); 561 return new LSLInteger((int)m_data[itemIndex]);
562 else if (m_data[itemIndex] is LSL_Types.LSLString) 562 else if (m_data[itemIndex] is LSL_Types.LSLString)
563 return new LSLInteger((string)m_data[itemIndex]); 563 return new LSLInteger(m_data[itemIndex].ToString());
564 else 564 else
565 throw new InvalidCastException(); 565 throw new InvalidCastException();
566 } 566 }