diff --git a/Storage/State/Z80.cpp b/Storage/State/Z80.cpp index 7a8ca8a21..d59b8a7d4 100644 --- a/Storage/State/Z80.cpp +++ b/Storage/State/Z80.cpp @@ -193,6 +193,7 @@ std::unique_ptr Z80::load(const std::string &file_name } } + assert(location + block_size == file.tell()); file.seek(location + block_size, SEEK_SET); }