TLists Reporting Incorrect Counts?

BlitzMax Forums/BlitzMax Programming/TLists Reporting Incorrect Counts?

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.

I use it to keep track of number of tanks left in an old tank game I made. I have used it on 1.26, 1.28 and 1.30 and never had any problems.
I am using 1.30 at the moment.
I made a simple example to test it:
Local list:TList
Type TEco
	Field Forest:Int
	Field trees:Int
	Field animal:Int
	Field river:Int
End Type
list = New TList
For n = 0 To 500
	Local e:TEco = New TEco
	e.Forest = Rnd(5) 
	e.trees = Rnd(57) 
	e.animal = Rnd(350) 
	e.river = Rnd(4) 
	list.addlast(e) 
Next
Print list.count()
For e:teco = EachIn list
	list.Remove(e) 
Next
Print list.count()

everything works fine here.