In setop I initialize the position values of my ball class, and set up the state machine it contains to the starting state. When I’m in setup the pointers for the owner, current state, and global state are still there, but once I reach Update the ball’s state machine loses the owner. When I try to change States the program crashes. Does anyone know why of might lose those pointers? I’d post the code, but it’s kind of long.
Figured out what I was doing incorrectly. I’ve been refactoring my code to make it cleaner, and work without magic numbers. Turns out I had initially setup my ball as a non-pointer.