Maintaining old scene information

Scene_Map terminates itself when you call the menu.

When you exit the menu, Scene_Map is recreated, but it still holds information from before it was terminated. For example, NPCs mid-stride will be at their exact position they were before the menu was called. How is this information being stored?

I have my own scene built on Scene_Base, but it resets entirely when returning from the menu.
Map information is stored in $gameMap, which is an instance of Game_Map.
Are you pushing the scene onto the stack, or just using goto?

Edit: Nevermind; Adding a scene onto the stack will still instantiate a new one. You'll have to store the scene information independently.

Original thread: https://forums.rpgmakerweb.com/threads/maintaining-old-scene-information.54333/