rem: if( isNaN(newCount) ) { newCount = parseInt("0"); 
add: if( parseInt(sheet()[spellCast].value) ) { newCount = parseInt(sheet()[spellCast].value); if( isNaN(newCount) ) { newCount = parseInt("0"); } 
context: function updateCast() {    var i;    for( i = 0; i <= 9; i++ ) {        sheet()["SpellCast" + i].value = 0;    }    for( i = 1; i <= 60; i++ ) {        var num = "" + i;        if( num.length == 1 ) {            num = "0" + num;        }        var spellLevel = "Spell" + num + "Level";        var spellCast = "Spell" + num + "Cast";                if( isNaN(sheet()[spellLevel].value) ) {            continue;        }              var castCount = "SpellCast" + sheet()[spellLevel].value;        var currentCount = parseInt(sheet()[castCount].value);        var newCount =     parseInt(sheet()[spellCast].value);        if( isNaN(currentCount) ) {            currentCount = parseInt("0");        }        if( isNaN(newCount) ) {            newCount = parseInt("0");        }        sheet()[castCount].value = currentCount + newCount;    }}
meta: 8354	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8354/d72fdfbf37aa1d233635af773bc09628b7ebc13f/spells.js/buggy/public_profiler/v3.5-DD/spells.js