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