loadMapAddresses(hm.rom); loadDrawTilesets(hm.rom); if (sprites) {
if (sprites && (spData == null)) {
	public static void loadData(HackModule hm, boolean sprites,			boolean doors, boolean hotspots, boolean enemies,			boolean loadMapChanges) {		mapChanges = new ArrayList();		sectorData = new Sector[MapEditor.heightInSectors				* MapEditor.widthInSectors];		drawingTilesets = new int[MapEditor.mapTsetNum];		for (int i = 0; i < drawingTilesets.length; i++)			drawingTilesets[i] = -1;		localTilesetChanges = new ArrayList();		errors = new ArrayList();		spriteImages = new Image[SpriteEditor.NUM_ENTRIES][8];		mapAddresses = new int[8];		for (int i = 0; i < mapAddresses.length; i++)			mapAddresses[i] = -1;				loadMapAddresses(hm.rom);		loadDrawTilesets(hm.rom);		if (sprites) {			spData = new ArrayList[(MapEditor.heightInSectors / 2)			       				* MapEditor.widthInSectors];						TPTEditor.readFromRom(hm);			SpriteEditor.readFromRom(hm.rom);			loadSpriteData(hm.rom);		}		if (doors) {			doorData = new ArrayList[(MapEditor.heightInSectors / 2)			         				* MapEditor.widthInSectors];			oldDoorEntryLengths = new int[(MapEditor.heightInSectors / 2)			                              * MapEditor.widthInSectors];			destData = new ArrayList();			destsLoaded = new ArrayList();			destsIndexes = new ArrayList();			         					loadDoorData(hm.rom);		}		if (hotspots)			HotspotEditor.readFromRom(hm);		if (enemies) {			enemyLocChanges = new ArrayList();			EnemyPlacementGroupsEditor.readFromRom(hm.rom);			BattleEntryEditor.readFromRom(hm.rom);			EnemyEditor.readFromRom(hm);		}		if (loadMapChanges) {			MapEventEditor.readFromRom(hm.rom);		}	}