summaryrefslogtreecommitdiff
path: root/src/animationparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animationparticle.cpp')
-rw-r--r--src/animationparticle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/animationparticle.cpp b/src/animationparticle.cpp
index 30c33da7..c79a5bc4 100644
--- a/src/animationparticle.cpp
+++ b/src/animationparticle.cpp
@@ -26,7 +26,7 @@
#include "simpleanimation.h"
AnimationParticle::AnimationParticle(Map *map, Animation *animation):
- ImageParticle(map, 0),
+ ImageParticle(map, NULL),
mAnimation(new SimpleAnimation(animation))
{
}
@@ -40,6 +40,7 @@ AnimationParticle::AnimationParticle(Map *map, xmlNodePtr animationNode):
AnimationParticle::~AnimationParticle()
{
delete mAnimation;
+ mImage = NULL;
}
bool AnimationParticle::update()