fix saving of submaps from map.

This fixes the crash (double delete) at the end of the game.