summaryrefslogtreecommitdiff
path: root/src/particle/particlecontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/particlecontainer.cpp')
-rw-r--r--src/particle/particlecontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particle/particlecontainer.cpp b/src/particle/particlecontainer.cpp
index c6c469436..b69cd091d 100644
--- a/src/particle/particlecontainer.cpp
+++ b/src/particle/particlecontainer.cpp
@@ -44,12 +44,12 @@ ParticleContainer::~ParticleContainer()
void ParticleContainer::clear()
{
clearLocally();
- if (mNext)
+ if (mNext != nullptr)
mNext->clear();
}
void ParticleContainer::moveTo(const float x, const float y)
{
- if (mNext)
+ if (mNext != nullptr)
mNext->moveTo(x, y);
}