Update: CC - Before Render - Moorcow (autqzs1rvq.js) 33 bytes modified
parent
0fb6ab8f5a
commit
b1f6daa5bb
|
@ -51,7 +51,7 @@
|
||||||
this.score = 0;
|
this.score = 0;
|
||||||
this.lives = 10;
|
this.lives = 10;
|
||||||
|
|
||||||
if (this.enemies.length !== 0) {
|
if (this.enemies instanceof Array && this.enemies.length !== 0) {
|
||||||
this.enemies.map(
|
this.enemies.map(
|
||||||
function(enemy) {
|
function(enemy) {
|
||||||
this.kill(enemy);
|
this.kill(enemy);
|
||||||
|
|
Loading…
Reference in New Issue