diff options
Diffstat (limited to 'src/particlecontainer.cpp')
-rw-r--r-- | src/particlecontainer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/particlecontainer.cpp b/src/particlecontainer.cpp index 12ef5733..f7672eac 100644 --- a/src/particlecontainer.cpp +++ b/src/particlecontainer.cpp @@ -130,6 +130,7 @@ ParticleVector::setLocally(int index, Particle *particle) if (mIndexedElements.size() <= (unsigned) index) mIndexedElements.resize(index + 1, NULL); + particle->disableAutoDelete(); mIndexedElements[index] = particle; } |