aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-01-11 14:59:55 +0100
committerMelanie2011-01-12 21:25:51 +0000
commitf75a3ee7628f4f0f75cad825d8ffc8195258583f (patch)
treef9d686e49a36ce54334cd567af2d59918dd4cfb3 /OpenSim
parentPartial permissions fix for boxed items. (diff)
downloadopensim-SC_OLD-f75a3ee7628f4f0f75cad825d8ffc8195258583f.zip
opensim-SC_OLD-f75a3ee7628f4f0f75cad825d8ffc8195258583f.tar.gz
opensim-SC_OLD-f75a3ee7628f4f0f75cad825d8ffc8195258583f.tar.bz2
opensim-SC_OLD-f75a3ee7628f4f0f75cad825d8ffc8195258583f.tar.xz
Use ToString() rather than a cast (more robust)
Diffstat (limited to 'OpenSim')
-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 91e03ac..298d664 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -558,7 +558,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
558 else if (m_data[itemIndex] is Int32) 558 else if (m_data[itemIndex] is Int32)
559 return new LSLInteger((int)m_data[itemIndex]); 559 return new LSLInteger((int)m_data[itemIndex]);
560 else if (m_data[itemIndex] is LSL_Types.LSLString) 560 else if (m_data[itemIndex] is LSL_Types.LSLString)
561 return new LSLInteger((string)m_data[itemIndex]); 561 return new LSLInteger(m_data[itemIndex].ToString());
562 else 562 else
563 throw new InvalidCastException(); 563 throw new InvalidCastException();
564 } 564 }