Skip to content

Commit 40a495e

Browse files
author
Peter Blood
committed
Fix incorrect variable name
1 parent 246b7c9 commit 40a495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function nextWave() {
181181
rot: Math.random() * Math.PI * 2
182182
};
183183

184-
if (isAsteroidColliding(newAsteroid, playerX, playerY, asteroid.type * ASTEROID_SCALE * ASTEROID_BUFFER_MULTIPLIER)) {
184+
if (isAsteroidColliding(newAsteroid, playerX, playerY, newAsteroid.type * ASTEROID_SCALE * ASTEROID_BUFFER_MULTIPLIER)) {
185185
// Don't decrease the total # of asteroids
186186
i--;
187187
continue;

0 commit comments

Comments
 (0)