diff --git a/src/core/memory_card_image.cpp b/src/core/memory_card_image.cpp index 708e937c4..cebe37903 100644 --- a/src/core/memory_card_image.cpp +++ b/src/core/memory_card_image.cpp @@ -297,7 +297,7 @@ bool ReadFile(const DataArray& data, const FileInfo& fi, std::vector* buffer std::memcpy(buffer->data() + (i * BLOCK_SIZE), GetFramePtr(data, block_number, 0), BLOCK_SIZE); const DirectoryFrame* df = GetFramePtr(data, 0, block_number); - block_number = df->next_block_number; + block_number = df->next_block_number + 1; } return true;