1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Just to be safe.

This commit is contained in:
Thomas Harte 2017-08-11 18:41:08 -04:00
parent 83c7d34df2
commit 0c8769e335

View File

@ -280,7 +280,7 @@ std::shared_ptr<Sector> Parser::get_sector(uint8_t head, uint8_t track, uint8_t
if(first_sector) { if(first_sector) {
while(1) { while(1) {
std::shared_ptr<Sector> next_sector = get_next_sector(); std::shared_ptr<Sector> next_sector = get_next_sector();
if(next_sector->sector == first_sector->sector) break; if(!next_sector || next_sector->sector == first_sector->sector) break;
} }
} }
decoded_tracks_.insert(track_index); decoded_tracks_.insert(track_index);