diff --git a/StaticAnalyser/MSX/Tape.cpp b/StaticAnalyser/MSX/Tape.cpp index 5cfb4bc20..fa49afe90 100644 --- a/StaticAnalyser/MSX/Tape.cpp +++ b/StaticAnalyser/MSX/Tape.cpp @@ -77,13 +77,15 @@ std::vector StaticAnalyser::MSX::GetFiles(const std::shared_ptr(byte)); } if(c != -1) break; - if(file.data.back() == 0x1a) { + if(contains_end_of_file) { files.push_back(std::move(file)); break; }