summaryrefslogtreecommitdiff
path: root/src/particle/particle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-23 02:14:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-23 02:14:30 +0300
commit6a65a4cf5b6b10839254c0c5846ec2dbfea882f8 (patch)
treecdf1dcc071ab18575defff569d33f3cbc8be0348 /src/particle/particle.h
parent1a5f8957c707625efbcf36722b057d5eda5a21bb (diff)
downloadplus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.gz
plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.bz2
plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.tar.xz
plus-6a65a4cf5b6b10839254c0c5846ec2dbfea882f8.zip
Allow delete untracker being particle effects.
This fix some possible memory leaks.
Diffstat (limited to 'src/particle/particle.h')
-rw-r--r--src/particle/particle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/particle/particle.h b/src/particle/particle.h
index f1a8154b6..859a61505 100644
--- a/src/particle/particle.h
+++ b/src/particle/particle.h
@@ -28,6 +28,8 @@
#include "enums/particle/alivestatus.h"
#include "enums/particle/particletype.h"
+#include "enums/simpletypes/beingid.h"
+
#include "particle/particleengine.h"
#include "localconsts.h"
@@ -238,6 +240,9 @@ class Particle notfinal : public Actor
const signed char conditions) restrict2
{ mDeathEffect = effectFile; mDeathEffectConditions = conditions; }
+ void setActor(const BeingId actor)
+ { mActor = actor; }
+
protected:
void updateSelf() restrict2;
@@ -270,6 +275,8 @@ class Particle notfinal : public Actor
/**< The image used for this particle. */
Image *restrict mImage;
+ BeingId mActor;
+
private:
// List of child emitters.
Emitters mChildEmitters;