mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-14 14:59:29 -05:00
Fix crash in teambuilder export
(crash occurs with a set with no moves)
This commit is contained in:
@@ -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 ')
|
||||
|
||||
Reference in New Issue
Block a user