aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-06 02:01:47 +0000
committerJustin Clark-Casey (justincc)2012-03-06 02:01:47 +0000
commit85198a45cb944a3de7402d7fccc75ec499002f01 (patch)
tree7610d7cd49477bdc4f2892d7f4e49af7a9b71412 /OpenSim/Region/ScriptEngine
parentSimplify NPCModuleTests code by putting the NPCModule in an instance variable... (diff)
downloadopensim-SC_OLD-85198a45cb944a3de7402d7fccc75ec499002f01.zip
opensim-SC_OLD-85198a45cb944a3de7402d7fccc75ec499002f01.tar.gz
opensim-SC_OLD-85198a45cb944a3de7402d7fccc75ec499002f01.tar.bz2
opensim-SC_OLD-85198a45cb944a3de7402d7fccc75ec499002f01.tar.xz
Fix off by one error in script error reporting.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 8b88588..65d3b9b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -118,7 +118,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
118 emessage = emessage.Substring(slinfo.Length+2); 118 emessage = emessage.Substring(slinfo.Length+2);
119 119
120 message = String.Format("({0},{1}) {2}", 120 message = String.Format("({0},{1}) {2}",
121 e.slInfo.lineNumber - 2, 121 e.slInfo.lineNumber - 1,
122 e.slInfo.charPosition - 1, emessage); 122 e.slInfo.charPosition - 1, emessage);
123 123
124 throw new Exception(message); 124 throw new Exception(message);