summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-08 00:15:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-08 00:15:01 +0300
commitea407dcf7f05a00224a1e3fdabf1273a4a60b0df (patch)
treea7090420cccdc3a307cb52fad922d37e0b864b64 /src/particle
parentac8a0111677c27779b2e7effe8ffe42ea013eb57 (diff)
downloadplus-ea407dcf7f05a00224a1e3fdabf1273a4a60b0df.tar.gz
plus-ea407dcf7f05a00224a1e3fdabf1273a4a60b0df.tar.bz2
plus-ea407dcf7f05a00224a1e3fdabf1273a4a60b0df.tar.xz
plus-ea407dcf7f05a00224a1e3fdabf1273a4a60b0df.zip
Fix possible infinite loop in particles
Diffstat (limited to 'src/particle')
-rw-r--r--src/particle/particle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp
index a04cee6f3..9d755276d 100644
--- a/src/particle/particle.cpp
+++ b/src/particle/particle.cpp
@@ -324,6 +324,7 @@ bool Particle::update() restrict2
{
// move particle with its parent if desired
(*p)->moveBy(change);
+ ++p;
}
}