aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemyBulletPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/enemy/EnemyBulletPool.cpp')
-rw-r--r--game/enemy/EnemyBulletPool.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/enemy/EnemyBulletPool.cpp b/game/enemy/EnemyBulletPool.cpp
index 6ebd50a..63afca3 100644
--- a/game/enemy/EnemyBulletPool.cpp
+++ b/game/enemy/EnemyBulletPool.cpp
@@ -4,5 +4,8 @@ using namespace std;
void EnemyBulletPool::create_bullets(crepe::Scene & scn) {
EnemyBulletSubScene bullet;
- while(bullet.create(scn) < this->MAXIMUM_AMOUNT);
+ int amount = 0;
+ while (amount < this->MAXIMUM_AMOUNT) {
+ amount = bullet.create(scn, amount);
+ }
}