diff options
Diffstat (limited to 'src/particle/particlelist.cpp')
-rw-r--r-- | src/particle/particlelist.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/particle/particlelist.cpp b/src/particle/particlelist.cpp index c95bec9e6..6c2818681 100644 --- a/src/particle/particlelist.cpp +++ b/src/particle/particlelist.cpp @@ -36,7 +36,8 @@ ParticleList::ParticleList(ParticleContainer *const parent, {} ParticleList::~ParticleList() -{} +{ +} void ParticleList::addLocally(Particle *const particle) { @@ -57,6 +58,7 @@ void ParticleList::removeLocally(const Particle *const particle) if (p == particle) { p->kill(); + p->prepareToDie(); it = mElements.erase(it); } else |