diff --git a/panda/src/particlesystem/particleSystemManager.cxx b/panda/src/particlesystem/particleSystemManager.cxx index 28d3c62584..73ab5846a9 100644 --- a/panda/src/particlesystem/particleSystemManager.cxx +++ b/panda/src/particlesystem/particleSystemManager.cxx @@ -121,7 +121,9 @@ do_particles(float dt) { } } - ++cur; + if (cur != _ps_list.end()) { + ++cur; + } } // cout << "PSM::do_particles finished." << endl; // cout << "ParticleSystemManager::doparticles exiting." << endl;