diff options
author | SignpostMarv | 2012-08-16 15:32:20 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-08-17 23:08:24 +0100 |
commit | 74f5253a366cefa5222a813f4ed349db93c08acc (patch) | |
tree | 6f7ca7e96420e4228a1f34879a6d1b4953f20040 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-74f5253a366cefa5222a813f4ed349db93c08acc.zip opensim-SC-74f5253a366cefa5222a813f4ed349db93c08acc.tar.gz opensim-SC-74f5253a366cefa5222a813f4ed349db93c08acc.tar.bz2 opensim-SC-74f5253a366cefa5222a813f4ed349db93c08acc.tar.xz |
attempt to handle InvalidCastException in a manner similar to Second Life
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index b7b5e8e..255fc8e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7674,6 +7674,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7674 | } | 7674 | } |
7675 | } | 7675 | } |
7676 | } | 7676 | } |
7677 | catch (InvalidCastException e) | ||
7678 | { | ||
7679 | ShoutError(e.Message); | ||
7680 | } | ||
7677 | finally | 7681 | finally |
7678 | { | 7682 | { |
7679 | if (positionChanged) | 7683 | if (positionChanged) |