Name: Seven 2007-05-11 23:39 ID:Yp9UrS/m
Okey, im a memory noob when it comes to C++, i dunt really understand pointers and shallow-deep copy shit, and its causing me a problem.
Pointer to an image object, is passed to a class which makes some changes and uses it every step/frame. Works fine when theres only one instance of the object, but when i try to create another, my game crashes! Is passing a pointer to multiple instances bad??
Pointer to an image object, is passed to a class which makes some changes and uses it every step/frame. Works fine when theres only one instance of the object, but when i try to create another, my game crashes! Is passing a pointer to multiple instances bad??