diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs index 880ba4a..bf97d5f 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs | |||
@@ -87,6 +87,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
87 | /// <returns>String containing the generated C# code.</returns> | 87 | /// <returns>String containing the generated C# code.</returns> |
88 | public string Convert(string script) | 88 | public string Convert(string script) |
89 | { | 89 | { |
90 | m_warnings.Clear(); | ||
90 | ResetCounters(); | 91 | ResetCounters(); |
91 | Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true)); | 92 | Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true)); |
92 | // Obviously this needs to be in a try/except block. | 93 | // Obviously this needs to be in a try/except block. |
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 5b851f6..5d5e3c5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |||
@@ -261,6 +261,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
261 | public string PerformScriptCompile(string Script, string asset) | 261 | public string PerformScriptCompile(string Script, string asset) |
262 | { | 262 | { |
263 | m_positionMap = null; | 263 | m_positionMap = null; |
264 | m_warnings.Clear(); | ||
264 | 265 | ||
265 | string OutFile = Path.Combine(ScriptEnginesPath, Path.Combine( | 266 | string OutFile = Path.Combine(ScriptEnginesPath, Path.Combine( |
266 | m_scriptEngine.World.RegionInfo.RegionID.ToString(), | 267 | m_scriptEngine.World.RegionInfo.RegionID.ToString(), |