Fix crash in monotype validator

This commit is contained in:
Guangcong Luo 2013-04-24 17:51:28 -07:00
parent 4c36582434
commit 80b375fa52

View File

@ -1348,6 +1348,7 @@ exports.BattleFormats = {
var typeTable = {};
for (var i=0; i<team.length; i++) {
var template = this.getTemplate(team[i].species);
if (!template.types) continue;
// first type
var type = template.types[0];