Having trouble with adding images to TList?

BlitzMax Forums/BlitzMax Programming/Having trouble with adding images to 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.

Need to put t:TMyPictures = New TMyPictures before t.pics=LoadImage....

The way you're doing it, you're creating another instance of the existing TImage in the TList, rather than making a new copy of it. You've basically ended up with a bunch of pointers referencing the same data (the last image you loaded).