Closed mspraggs closed 9 years ago
Hmm... If I go to frame 4 (addObject) and print the size of objects_, I get 17423302598739840727, so I think we have a memory leak somewhere.
Never fear, it's been fixed (sorry, I didn't see your self-assignment).
It was because when Player gets re-initialised when the game resets, I forgot to pass him the pointer to the current room, so he was accessing an un-initialised pointer. All fixed and pushed.
I get the following stacktrace if I play for bit then die, return to the menu and try and freeze the water there: