From: MegaBrutal <code+git@megabrutal.com>
Date: Mon, 24 Apr 2017 12:19:06 +0000 (+0200)
Subject: There should be one less crystals – corrected
X-Git-Url: http://git.megabrutal.com/?a=commitdiff_plain;h=983cdf922d7be73cfed96969b0452bf8666ebf74;p=ld38.git

There should be one less crystals – corrected

	modified:   ld38.js
---

diff --git a/ld38.js b/ld38.js
index 6e882be..f99fd63 100644
--- a/ld38.js
+++ b/ld38.js
@@ -89,7 +89,7 @@
             walls.children.forEach(function(wall) { wall.body.immovable = true; });
 
             gems = game.add.group();
-            for (var i = 0; i <= MAX_GEMS; i++)
+            for (var i = 0; i < MAX_GEMS; i++)
                 gems.add(new Gem((Math.random() * (game.world.width - (WALL_THICKNESS * 4))) + (WALL_THICKNESS * 2), (Math.random() * (game.world.height - (WALL_THICKNESS * 4))) + (WALL_THICKNESS * 2)));
             gems.children.forEach(function(gem) { gem.enablePhysics(); });