diff options
author | UbitUmarov | 2019-10-18 14:16:37 +0100 |
---|---|---|
committer | UbitUmarov | 2019-10-18 14:16:37 +0100 |
commit | f09a18a7a897994aaed7f7fc4ce751ff7871bb27 (patch) | |
tree | b935237a8ca1affbff68de70a7b7baacf6b74821 /OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs | |
parent | add LSL_Integer osIsNotValidNumber(LSL_Float v) (diff) | |
download | opensim-SC-f09a18a7a897994aaed7f7fc4ce751ff7871bb27.zip opensim-SC-f09a18a7a897994aaed7f7fc4ce751ff7871bb27.tar.gz opensim-SC-f09a18a7a897994aaed7f7fc4ce751ff7871bb27.tar.bz2 opensim-SC-f09a18a7a897994aaed7f7fc4ce751ff7871bb27.tar.xz |
Yengine: Also error on division by Zero
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs index 85bc9aa..f3bc764 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptReduce.cs | |||
@@ -7296,7 +7296,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
7296 | rValRight = rValRight.TryComputeConstant(lookup, ref didOne); | 7296 | rValRight = rValRight.TryComputeConstant(lookup, ref didOne); |
7297 | if((rValLeft is TokenRValConst) && (rValRight is TokenRValConst)) | 7297 | if((rValLeft is TokenRValConst) && (rValRight is TokenRValConst)) |
7298 | { | 7298 | { |
7299 | try | 7299 | // try |
7300 | { | 7300 | { |
7301 | object val = opcode.binOpConst(((TokenRValConst)rValLeft).val, | 7301 | object val = opcode.binOpConst(((TokenRValConst)rValLeft).val, |
7302 | ((TokenRValConst)rValRight).val); | 7302 | ((TokenRValConst)rValRight).val); |
@@ -7304,7 +7304,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
7304 | didOne = true; | 7304 | didOne = true; |
7305 | return rValConst; | 7305 | return rValConst; |
7306 | } | 7306 | } |
7307 | catch | 7307 | // catch |
7308 | { | 7308 | { |
7309 | } | 7309 | } |
7310 | } | 7310 | } |