diff options
author | Melanie | 2011-01-11 14:59:55 +0100 |
---|---|---|
committer | Melanie | 2011-01-12 21:25:51 +0000 |
commit | f75a3ee7628f4f0f75cad825d8ffc8195258583f (patch) | |
tree | f9d686e49a36ce54334cd567af2d59918dd4cfb3 /OpenSim/Region/ScriptEngine | |
parent | Partial permissions fix for boxed items. (diff) | |
download | opensim-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/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 2 |
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 | } |