summaryrefslogtreecommitdiff
path: root/src/particle/particlelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/particlelist.cpp')
-rw-r--r--src/particle/particlelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle/particlelist.cpp b/src/particle/particlelist.cpp
index e254da1be..d854a1da2 100644
--- a/src/particle/particlelist.cpp
+++ b/src/particle/particlelist.cpp
@@ -42,7 +42,7 @@ ParticleList::~ParticleList()
void ParticleList::addLocally(Particle *const particle)
{
- if (particle)
+ if (particle != nullptr)
{
mElements.push_back(particle);
mSize ++;