Remove the ((bool)()) cast, since it can make c# barf

This commit is contained in:
Melanie Thielker
2008-09-02 04:15:06 +00:00
parent 61978649ec
commit e2a0a04beb

View File

@@ -470,9 +470,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
{
string retstr = String.Empty;
retstr += GenerateIndented("if ((bool)(", ifs);
retstr += GenerateIndented("if (", ifs);
retstr += GenerateNode((SYMBOL) ifs.kids.Pop());
retstr += GenerateLine("))");
retstr += GenerateLine(")");
// CompoundStatement handles indentation itself but we need to do it
// otherwise.