aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-06 02:01:47 +0000
committerJustin Clark-Casey (justincc)2012-03-19 21:25:20 +0000
commitba27d8a38972c75277750ed480b00a4aaab2caba (patch)
treedff6e09be1cece16a1dd52f7f2c0be9a1964d0ba /OpenSim/Region
parentSimplify NPCModuleTests code by putting the NPCModule in an instance variable... (diff)
downloadopensim-SC_OLD-ba27d8a38972c75277750ed480b00a4aaab2caba.zip
opensim-SC_OLD-ba27d8a38972c75277750ed480b00a4aaab2caba.tar.gz
opensim-SC_OLD-ba27d8a38972c75277750ed480b00a4aaab2caba.tar.bz2
opensim-SC_OLD-ba27d8a38972c75277750ed480b00a4aaab2caba.tar.xz
Fix off by one error in script error reporting.
Diffstat (limited to 'OpenSim/Region')
-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);