summaryrefslogtreecommitdiff
path: root/src/particle/particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/particle.cpp')
-rw-r--r--src/particle/particle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp
index 48edee676..0805aed8c 100644
--- a/src/particle/particle.cpp
+++ b/src/particle/particle.cpp
@@ -34,8 +34,11 @@
#include "resources/resourcemanager.h"
+#include "resources/animation/simpleanimation.h"
+
#include "resources/dye/dye.h"
+#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/mathutils.h"
@@ -56,6 +59,7 @@ Particle::Particle() :
mVelocity(),
mAlive(AliveStatus::ALIVE),
mType(ParticleType::Normal),
+ mAnimation(nullptr),
mChildEmitters(),
mChildParticles(),
mDeathEffect(),
@@ -78,6 +82,7 @@ Particle::~Particle()
{
// Delete child emitters and child particles
clear();
+ delete2(mAnimation);
ParticleEngine::particleCount--;
}