diff options
author | Melanie | 2011-01-11 14:59:55 +0100 |
---|---|---|
committer | Melanie | 2011-01-11 14:59:55 +0100 |
commit | d8fd777e1338d1cffb28ffddd504eb45e7a02a5c (patch) | |
tree | 360123bbdc8efc8ef507e750ec2c248ef71510bd | |
parent | Partial permissions fix for boxed items. (diff) | |
download | opensim-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.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 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 | } |