diff options
author | Melanie Thielker | 2010-07-20 00:55:31 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-07-20 00:55:31 +0200 |
commit | 191bee2ed0903b23f5d93f79650daf7662480b17 (patch) | |
tree | 15e4e619158032bb29376e3dc0f64e70ad208097 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Remove exception badness in the LSL Types. Who ever came up with that.....?! (diff) | |
download | opensim-SC-191bee2ed0903b23f5d93f79650daf7662480b17.zip opensim-SC-191bee2ed0903b23f5d93f79650daf7662480b17.tar.gz opensim-SC-191bee2ed0903b23f5d93f79650daf7662480b17.tar.bz2 opensim-SC-191bee2ed0903b23f5d93f79650daf7662480b17.tar.xz |
Remove the null checks altogether
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a947b3d..138bcc9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5027,14 +5027,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5027 | { | 5027 | { |
5028 | m_host.AddScriptLPS(1); | 5028 | m_host.AddScriptLPS(1); |
5029 | 5029 | ||
5030 | if (src == null) | 5030 | return src.Length; |
5031 | { | ||
5032 | return 0; | ||
5033 | } | ||
5034 | else | ||
5035 | { | ||
5036 | return src.Length; | ||
5037 | } | ||
5038 | } | 5031 | } |
5039 | 5032 | ||
5040 | public LSL_Integer llList2Integer(LSL_List src, int index) | 5033 | public LSL_Integer llList2Integer(LSL_List src, int index) |