The above code should indeed work.
Defining the list iterator as a super type will allow it to loop thru all instances of the super type *and* all its sub-types.
(Tiles being a super-type, B_Type being a sub-type)
Annoying, isn't it, when you *know* something should work in a particular way, and it doesn't... and always the last thing that dawns on you is that you may have coded it wrong somewhere along the line ;-)
Defining the list iterator as a super type will allow it to loop thru all instances of the super type *and* all its sub-types.
(Tiles being a super-type, B_Type being a sub-type)
Annoying, isn't it, when you *know* something should work in a particular way, and it doesn't... and always the last thing that dawns on you is that you may have coded it wrong somewhere along the line ;-)