Browse Source

Fix particle system crash on Windows when system grows older flag is True

rdb 16 years ago
parent
commit
c3b3113a1a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/particlesystem/particleSystemManager.cxx

+ 3 - 1
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;