Skip to content

Commit

Permalink
Use braced init for aggregate member.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Jun 25, 2024
1 parent 1afa59f commit 41fe365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaced/spaced/scenes/endless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using bave::random_in_range;
using bave::Seconds;
using bave::Services;

EndlessScene::EndlessScene(App& app, Services const& services) : GameScene(app, services), m_creeps(&services) {
EndlessScene::EndlessScene(App& app, Services const& services) : GameScene(app, services), m_creeps{.services = &services} {
m_on_player_scored = services.get<GameSignals>().player_scored.connect([this](Enemy const& e) {
if (random_in_range(0, 10) < 3) { debug_spawn_powerup(e.get_position()); }
});
Expand Down

0 comments on commit 41fe365

Please sign in to comment.