RifRaf, my bad. I'm talking mince. It was when i added to the type list the pointer went to the end :) ops!
Ok, well, if you creating a particle system, it is wiser to NOT delete things. Just simply re-use them. Set there active flag to 0 if they aren't being used. When you goto update, check for all the type objects for being active. If so, then update that object, if not, skip it.
When it comes to generating a new object, look thru you list of particle objects to see if any aren't active. Then re-activate them. You will need to create the particles before hand tho, but it's is a good practice :)
Ok, well, if you creating a particle system, it is wiser to NOT delete things. Just simply re-use them. Set there active flag to 0 if they aren't being used. When you goto update, check for all the type objects for being active. If so, then update that object, if not, skip it.
When it comes to generating a new object, look thru you list of particle objects to see if any aren't active. Then re-activate them. You will need to create the particles before hand tho, but it's is a good practice :)