Skip to content

Commit

Permalink
Merge pull request #550 from tdaede/d88_fix_sector_id
Browse files Browse the repository at this point in the history
D88: Fix sector ID conditions when writing.
  • Loading branch information
davidgiven authored Aug 10, 2022
2 parents 9985d80 + 7177a78 commit e733dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imagewriter/d88imagewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class D88ImageWriter : public ImageWriter
headerWriter.write_le32(trackOffset);
int side = track & 1;
std::vector<std::shared_ptr<const Sector>> sectors;
for (int sectorId = 0; sectorId < geometry.numSectors; sectorId++)
for (int sectorId = geometry.firstSector; sectorId <= geometry.numSectors; sectorId++)
{
const auto& sector = image.get(track >> 1, side, sectorId);
if (sector)
Expand Down

0 comments on commit e733dc9

Please sign in to comment.