aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-17 15:20:29 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-17 15:20:29 +0100
commitba99bcbac33d05bc2067c9211c0fe453b2930a8d (patch)
treea032c8268fece08866d7f398bf781fd356560579 /src/crepe/system/RenderSystem.cpp
parent45a1ab16f29e85de7c2df8832f51967c10c43e92 (diff)
parent9232a98b72eee7af4f7f2153c1b2ccedbfa4cc65 (diff)
merge master
Diffstat (limited to 'src/crepe/system/RenderSystem.cpp')
-rw-r--r--src/crepe/system/RenderSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp
index 607bbab..c403f6c 100644
--- a/src/crepe/system/RenderSystem.cpp
+++ b/src/crepe/system/RenderSystem.cpp
@@ -83,11 +83,11 @@ bool RenderSystem::render_particle(const Sprite & sprite, const double & scale)
bool rendering_particles = false;
for (const ParticleEmitter & em : emitters) {
- if (&em.data.sprite != &sprite) continue;
+ if (&em.sprite != &sprite) continue;
rendering_particles = true;
if (!em.active) continue;
- for (const Particle & p : em.data.particles) {
+ for (const Particle & p : em.particles) {
if (!p.active) continue;
ctx.draw(SDLContext::RenderContext{