Fix crash in teambuilder export

(crash occurs with a set with no moves)
This commit is contained in:
Guangcong Luo
2013-01-27 22:55:11 -08:00
parent f0583b1cfe
commit fa65b1b2d0

View File

@@ -1779,7 +1779,7 @@ function Teambuilder(id, elem)
{
text += "\n";
}
for (var j=0; j<curSet.moves.length; j++)
if (curSet.moves) for (var j=0; j<curSet.moves.length; j++)
{
var move = curSet.moves[j];
if (move.substr(0,13) === 'Hidden Power ')