I'm trying to learn how to allocate memory reading a tutorial. I wanted to allocate 128mbs of memory. 64 for permanent memory and another 64 for allocating temporary memory.
At a glance: You assign the value of memory to management. management is a local pointer variable passed by value. By assigning something to management, you are essentially overwriting whatever value for management you passed into the function.
The &game.management object you pass in is never modified.
Perhaps you meant to pass it by reference? (Management*& management)