From b1f6daa5bbcf692fe1cb0549fe4e07039a1cec03 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 19 Nov 2017 19:05:42 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (autqzs1rvq.js) 33 bytes modified --- autqzs1rvq.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);