2
« on: February 12, 2012, 09:47:53 pm »
I retried references and it still gave me the same error. Also, when you pass the sprite into the list dont you get rid of the ampersand?
Anyway, I thought that if you have to pass objects between classes, especially into a data structure, that you have to use pointers since references are not assignable. I have also been told by a lot of resources online and in a few books that a list of pointers to sprites on the heap is good way of making a sprite handler as long as you delete them from memory properly.
Any other advice would be appreciated.