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

0.6.0-stable
Melanie Thielker 2008-09-02 04:15:06 +00:00
parent 61978649ec
commit e2a0a04beb
1 changed files with 2 additions and 2 deletions

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.