aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 19:27:30 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 19:27:30 +0100
commitc23c7d03522456ac580cb7acd93fbfd95d5b846d (patch)
treedd552c8d0a979f366148cc7e2a48d666a4621556 /src/example
parent72c0ee97c24202bece3c11a64016bf0f4ce23341 (diff)
fixed compile warning and tested the prerequisite that user needs to set explicity and reference
Diffstat (limited to 'src/example')
-rw-r--r--src/example/rendering_particle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index 5030bc6..4571afb 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -32,7 +32,8 @@ int main(int argc, char * argv[]) {
Sprite & test_sprite = game_object.add_component<Sprite>(
make_shared<Texture>("../asset/texture/img.png"), color, FlipSettings{false, false});
test_sprite.order_in_layer = 5;
- auto test = game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{
+
+ auto & test = game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{
.position = {0, 0},
.max_particles = 10,
.emission_rate = 0.1,