summaryrefslogtreecommitdiffhomepage
path: root/GameScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GameScreen.cpp')
-rw-r--r--GameScreen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/GameScreen.cpp b/GameScreen.cpp
index 4a2fc22..774956e 100644
--- a/GameScreen.cpp
+++ b/GameScreen.cpp
@@ -4,7 +4,8 @@
GameScreen::GameScreen() :
- m_const {}
+ m_const {},
+ m_generator {m_const.m_bullets}
{
}
@@ -13,7 +14,7 @@ void
GameScreen::update(const float dt)
{
m_player.update(dt);
- m_generator.update(dt, m_const.m_bullets);
+ m_generator.update(dt);
m_const.update(dt);
bool collided = false;
for (const auto& bullet : m_const.m_bullets) {