diff --git a/autqzs1rvq.js b/autqzs1rvq.js index dadb019..54c3a09 100644 --- a/autqzs1rvq.js +++ b/autqzs1rvq.js @@ -51,7 +51,7 @@ this.score = 0; this.lives = 10; - if (this.enemies.length !== 0) { + if (this.enemies instanceof Array && this.enemies.length !== 0) { this.enemies.map( function(enemy) { this.kill(enemy);