Skip to content

Commit

Permalink
ADL: Skip deleted files when reading VTOC
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervn committed Mar 5, 2017
1 parent 15c0cb4 commit e97973a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/adl/disk.cpp
Expand Up @@ -406,7 +406,8 @@ void Files_DOS33::readVTOC() {

entry.totalSectors = stream->readUint16BE();

if (sectorList.track != 0) {
// 0 is empty slot, 255 is deleted file
if (sectorList.track != 0 && sectorList.track != 255) {
readSectorList(sectorList, entry.sectors);
_toc[name] = entry;
}
Expand Down

0 comments on commit e97973a

Please sign in to comment.