From c3b3113a1a80cfe1cfebc3d33f0492551ce0ff89 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 17 Jul 2009 05:31:22 +0000 Subject: [PATCH] Fix particle system crash on Windows when system grows older flag is True --- panda/src/particlesystem/particleSystemManager.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;