Removing an Object from a TLIST

BlitzMax Forums/BlitzMax Programming/Removing an Object from a TLIST

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What happens if I remove an object from a TLIST inside a update of all TLIST's?

'Remove the Starship from the List.
Method RemoveStarship(pTStarship:TStarship)
	m_pTStarshipList.Remove( pTStarship )				
End Method 


For pTStarship = EachIn m_pTStarshipList
	pTStarship.Update(dTimeStep)
Next


Is it possible the same starship would get updated twice? How does it work when you remove and your iterating through the list?