Update: CC - Before Render - Moorcow (autqzs1rvq.js) 33 bytes modified
parent
0fb6ab8f5a
commit
b1f6daa5bb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue