Fix a segfault caused by DungeonMap::generateRooms()