Fixes Mantis #3187. Thank you kindly, DoranZemlja for a patch that:

Deals with the multiple warning side affect introduced earlier.
This commit is contained in:
Charles Krinke
2009-02-25 04:29:02 +00:00
parent 72be38f7ae
commit ed7256ac0c
2 changed files with 2 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
/// <returns>String containing the generated C# code.</returns>
public string Convert(string script)
{
m_warnings.Clear();
ResetCounters();
Parser p = new LSLSyntax(new yyLSLSyntax(), new ErrorHandler(true));
// Obviously this needs to be in a try/except block.